all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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:58:13 +0200	[thread overview]
Message-ID: <6135a126-1d6b-4965-8d7a-41028e962ee8@beloved.name> (raw)
In-Reply-To: <CADwFkm=09bYiG_-KQk9NwziHX-kMDhoj3gUQ9aWUaav1pQk9EA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2369 bytes --]


On 2023-10-23 17:33, Stefan Kangas wrote:
> Eli Zaretskii<eliz@gnu.org>  writes:
>
>>> 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.
>> The --maximized switch creates the frame maximized from the get-go
>> here.
> You are correct, sorry for the confusion.  It's good to learn that
> --maximized works without issue.
>
> So I guess this discussion is about:
>
>      (add-hook 'emacs-startup-hook 'toggle-frame-maximized)
>
> Then I guess I have the same question, but for that customization.  Why
> do we suggest a customization which has a "slighty distracting visual
> effect"?

That is why I wrote this section in 
https://www.gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html

-----------------------------------8<----------------------------------------------

Alternatively, you can avoid the visual effect of Emacs changing its 
frame size entirely in your init file (i.e., without using the 
Registry), like this:

(setq frame-resize-pixelwise t)
(set-frame-position nil 0 0)
(set-frame-size nil (display-pixel-width) (display-pixel-height) t)

---------------------------------->8------------------------------------------------

However, it doesn't work in GNU/Linux.


>    Can we come up with a way to provide a one-line customization
> that does not have this issue?

As mentioned in the thread with Subject: *Solution to a proposed FAQ, 
how to maximize emacs quickly (like `emacs --maximize`) for GNU/Linux - 
Improved solution by Chad: ~/.emacs.d/early-init.el* 
(https://lists.gnu.org/archive/html/emacs-devel/2023-10/msg00070.html) a 
one-line customization that works is to add this to .emacs.d/early-init.el:

     (push '(fullscreen . maximized) default-frame-alist)

* It works even if it takes time to load a typical .emacs configuration

* I've successfully tested it in GNU/Linux (both X11, and Wayland), and 
Windows.


> PS.  On a side note, --maximized doesn't seem to work on this macOS
>       machine.  I'll open a separate bug report for that.
>
Thank you very much!


[-- Attachment #2: Type: text/html, Size: 4132 bytes --]

  reply	other threads:[~2023-10-23 15:58 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
2023-10-23 15:33                   ` Stefan Kangas
2023-10-23 15:58                     ` David Hedlund [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6135a126-1d6b-4965-8d7a-41028e962ee8@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.