From: Drew Adams <drew.adams@oracle.com>
To: Tatsu Takamaro <tatsu.takamaro@gmail.com>,
"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Q4 - the bottom edge of Emacs doesn't stick to the taskbar
Date: Sun, 15 Dec 2024 02:30:26 +0000 [thread overview]
Message-ID: <DS7PR10MB52327BD7B9E16BFD51C3E5D4F33A2@DS7PR10MB5232.namprd10.prod.outlook.com> (raw)
In-Reply-To: <2ff7232e-1643-8f64-8371-9c32dac343af@gmail.com>
> When I use this
>
> *(add-to-list 'default-frame-alist '(height . 1.0))*
>
> to tell Emacs be of all height, it takes it too literaly, and its bottom
> edge is shown hidden behind the taskbar line. What should I do to make
> it stick to the taskbar's up border?
1. Emacs knows nothing about the MS Windows task bar. (And the task
bar can be displayed in different places; it's not necessarily at
the bottom of the screen.)
2. See (elisp) `Size Parameters', for `width' (height is analogous):
a floating-point value
A floating-point number between 0.0 and 1.0 can be used to
specify the width of a frame via its “width ratio”—the ratio
of its outer width (*note Frame Geometry::) to the width of
the frame’s workarea (*note Multiple Terminals::) or its
parent frame’s (*note Child Frames::) native frame. Thus, a
value of 0.5 makes the frame occupy half of the width of its
workarea or parent frame, a value of 1.0 the full width.
Similarly, the “height ratio” of a frame is the ratio of its
outer height to the height of its workarea or its parent’s
native frame.
Emacs will try to keep the width and height ratio of a child
frame unaltered if that frame has a non-‘nil’ ‘keep-ratio’
parameter (*note Frame Interaction Parameters::) and its
parent frame is resized.
Since the outer size of a frame is usually unavailable before
a frame has been made visible, it is generally not advisable
to use floating-point values when creating decorated frames.
Floating-point values are more suited to ensure that a child
frame always fits within the area of its parent frame as, for
example, when customizing ‘display-buffer-alist’ (*note
Choosing Window::) via ‘display-buffer-in-child-frame’.
So you will likely want to use an integer value, not a decimal
value (what the doc calls a floating-point value), e.g., 35
(characters), instead of 1.0.
To avoid the task bar, specify also a value for frame parameter
`top'.
next prev parent reply other threads:[~2024-12-15 2:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-15 0:22 Q4 - the bottom edge of Emacs doesn't stick to the taskbar Tatsu Takamaro
2024-12-15 2:30 ` Drew Adams [this message]
2024-12-15 7:47 ` Eli Zaretskii
2024-12-15 17:55 ` [External] : " Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DS7PR10MB52327BD7B9E16BFD51C3E5D4F33A2@DS7PR10MB5232.namprd10.prod.outlook.com \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=tatsu.takamaro@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).