On 04/04/2023 21:20, Eli Zaretskii wrote:
Date: Tue, 4 Apr 2023 21:11:39 +0200
From: David Hedlund <public@beloved.name>

From
https://www.gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html

"To avoid the slightly distracting visual effect of Emacs starting with its default frame size and then growing
to fullscreen, you can add an ‘Emacs.Geometry’ entry to the Windows registry settings. See X Resources in
The GNU Emacs Manual. 

To compute the correct values for width and height, first maximize the Emacs frame and then evaluate
(frame-height) and (frame-width) with M-:."

This could be added to
https://www.gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html
to help the users to automatically compute the values with (display-pixel-width) and (display-pixel-height):

(setq frame-resize-pixelwise t)

(set-frame-position (selected-frame) 0 0)

(set-frame-size (selected-frame) (display-pixel-width) (display-pixel-height) t)
Thanks, but resizing a frame doesn't make it fullscreen, does it?
That's correct. This will only make it convenient to avoid the "avoid the slightly distracting visual effect of Emacs starting with its default frame size and then growing to fullscreen" -
https://www.gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html without having to "compute the correct values for width and height".


Because the task bar stays on screen, and thus the frame cannot be as
large as a full-screen frame you get when you press F11.  Right?