From: David Hedlund <public@beloved.name>
To: emacs-devel@gnu.org
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 [thread overview]
Message-ID: <d3c81d79-d97e-482f-8459-543dabe278e0@beloved.name> (raw)
In-Reply-To: <83fs21o5k5.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 3180 bytes --]
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
|.emacs.d/early-init.el| instead of .emacs (thanks Chad).
(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 |.emacs.d/early-init.el: |(push '(fullscreen .
maximized) default-frame-alist)
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 |early-init.el |or is it written in C?
[-- Attachment #2: Type: text/html, Size: 4718 bytes --]
next prev parent reply other threads:[~2023-10-23 15:25 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-29 21:05 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 ? David Hedlund
2023-09-30 13:57 ` Eli Zaretskii
2023-09-30 18:09 ` chad
2023-09-30 18:36 ` Eli Zaretskii
2023-09-30 19:06 ` David Hedlund
2023-09-30 19:21 ` Eli Zaretskii
2023-10-02 22:40 ` David Hedlund
2023-10-02 23:05 ` Emanuel Berg
2023-10-05 3:56 ` David Hedlund
2023-10-21 9:35 ` Stefan Kangas
2023-10-21 9:52 ` Eli Zaretskii
2023-10-21 10:02 ` Stefan Kangas
2023-10-21 11:18 ` Eli Zaretskii
2023-10-21 20:05 ` chad
2023-10-21 12:55 ` David Hedlund
2023-10-22 22:24 ` Stefan Kangas
2023-10-23 13:02 ` Eli Zaretskii
2023-10-23 15:25 ` David Hedlund [this message]
2023-10-23 15:33 ` Stefan Kangas
2023-10-23 15:58 ` David Hedlund
2023-10-28 17:25 ` Stefan Kangas
2023-10-28 17:34 ` Emanuel Berg
2023-10-28 18:51 ` Eli Zaretskii
2023-10-28 19:39 ` Emanuel Berg
2023-10-28 18:02 ` David Hedlund
2023-10-28 20:03 ` Stefan Kangas
2023-11-04 13:58 ` Stefan Kangas
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=d3c81d79-d97e-482f-8459-543dabe278e0@beloved.name \
--to=public@beloved.name \
--cc=emacs-devel@gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).