|
From: | David Hedlund |
Subject: | Re: Should https://www.gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html be renamed to Maxmize-mode-on-MS_002dWindows.html ? |
Date: | Mon, 23 Oct 2023 17:25:22 +0200 |
User-agent: | Mozilla Thunderbird |
On 2023-10-23 15:02, Eli Zaretskii
wrote:
From: Stefan Kangas <stefankangas@gmail.com> Date: Sun, 22 Oct 2023 15:24:36 -0700 David Hedlund <public@beloved.name> writes:Also, people expect GUIs that can start with a maximized window to not gradually expand it. Emacs is the only GUI that behaves this way of all the GUIs that I'm currently using.Right, but taking a step back here: should we consider that as a bug? IOW, instead of documenting workarounds, why isn't --maximized fixed to not have the "slightly distracting visual effect"? Is that impractical for some reason?Is this really about --maximized? I thought this was about customizations in the init file that cause frames to be maximized. Thank you for assisting me Eli, that is exactly what this is all about. -----------------------------------8<---------------------------------------------- To avoid the slightly distracting visual effect of Emacs starting
with its default frame size and then growing to fullscreen, you
can modify (push '(fullscreen . maximized) default-frame-alist) It works even if it takes time to load a typical .emacs configuration, and has been successfully tested in GNU/Linux (both X11, and Wayland), and Windows. The push function in Emacs is used to add an element to the beginning of a list. In the _expression_ (push ‘(fullscreen . maximized) default-frame-alist), the ‘(fullscreen . maximized) list is added to the beginning of the default-frame-alist list. The default-frame-alist variable is a list of property lists that are used to configure the initial appearance of Emacs frames. Each property list in the default-frame-alist variable contains a set of key-value pairs that specify properties for the frame. Essentially the code above will make emacs behave like `emacs --maximize` automatically each time when you open it, because the --maximize argument also opens Emacs without the slightly distracting visual effect. ---------------------------------->8------------------------------------------------ I think I failed with the bold text, can you please rephrase it
for me, Eli? I really want to use --maximize as a reference since
it is inbuilt Emacs.
The --maximized switch creates the frame maximized from the get-go here. A few days ago I posted this: -----------------------------------8<----------------------------------------------
I like Chad's solution to However, I'd like to compare it with the Lisp code that is
executed by `emacs --maximize`, can someone please help with find
it? If it's better than Chad's solution, then I'm willing to update "To avoid the slightly distracting visual effect" (https://www.emacswiki.org/emacs/FullScreen#h5o-3) with code and a comment to the source file where this code is found. ---------------------------------->8------------------------------------------------ For starters, is it even possible to reuse all source code from
--maximize in
|
[Prev in Thread] | Current Thread | [Next in Thread] |