From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel 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: Sat, 28 Oct 2023 10:25:00 -0700 Message-ID: References: <83o7hjahlw.fsf@gnu.org> <837co7a4po.fsf@gnu.org> <8ca2201b-c0f9-4e8d-b4ca-82d02ad78b99@beloved.name> <8334yva2m8.fsf@gnu.org> <4ffcb78e-3735-4c9d-9755-ff3403ca8071@beloved.name> <83fs21o5k5.fsf@gnu.org> <6135a126-1d6b-4965-8d7a-41028e962ee8@beloved.name> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24799"; mail-complaints-to="usenet@ciao.gmane.io" To: David Hedlund , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 28 19:25:57 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qwn4P-0006Gr-BC for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Oct 2023 19:25:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qwn3c-0001K0-8z; Sat, 28 Oct 2023 13:25:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwn3a-0001Js-TC for emacs-devel@gnu.org; Sat, 28 Oct 2023 13:25:06 -0400 Original-Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qwn3X-0007la-Nd for emacs-devel@gnu.org; Sat, 28 Oct 2023 13:25:05 -0400 Original-Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2c6b48cb2b6so5646281fa.2 for ; Sat, 28 Oct 2023 10:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698513901; x=1699118701; darn=gnu.org; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date:message-id:reply-to; bh=DzvsV1QMt/BpF2gc+om+5jkfk+1EQzqrlzBk2xbB6Ng=; b=RDL3fTV1gPJV0gYrDeKZTE1H2Poo+9RERU62psDZuLURVyhSKO9V75Oiv4i0jcHsll Uyk97YeCqSLr7AcbdaT2QiqaW3Lj3xHifF9KQCmsXIouKMKU3eAV/yzwf+n+lqTcxiSm 0NZJYMK8F4+rm5FQE9SA6I/UGjfJjQhqmF3dYC4fbf9aeJMl5gBJQXnJa4xZBDCFMQIY yWcVRKOwf0ieDcoAKtm9QRl8a7NaTNaALruouObBaR3S1PQneTdchTade/m9K2Tmaahw NyVd8t6+Lt3a0Pg4jP1+OTLxA/SnLb2xy5ErOEKN1V2WEA2g8QjqsjxugvuBu5TqolCk gJcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698513901; x=1699118701; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DzvsV1QMt/BpF2gc+om+5jkfk+1EQzqrlzBk2xbB6Ng=; b=DO88YGXhjMpfvIW4Z/DWeleMclMttTjbV1SdCVeMiLAznZELyQ/NCyouiTy0Cz8jIv q6rWsx90Gts96b+oxL9m1azDOjCOVY2EzlpcvjeB+TmnWUaIeXA3BJk9WXWURYKM7COR DjPzf9jLl4CgadrmfIDG/qRsVbau3GXnVXxpj7XkvGQmPHsgbaEPFqi8SFfyFBWTbdQM WN+aw3EzH+crhvdh/T+LFWhMuQMQfzZ6uQLRTd72cbyJ6rko4tHx27aAgpzj48VBSsIj tyoPpskugN/ea2xjUl7qBaHtsvtE2GGxqBuM5vGOruV1ZuifU8/drfaJhz4txuvMdvjv edaA== X-Gm-Message-State: AOJu0YzpDDXUU2ojTFl+yJgsfrx8Iu+vKvOD74mBVsBboYpj3TTaWvJq sNCOoF032zT4hJqi/z4ngv7Mg6LsZ/drG+0abKUR6A3f X-Google-Smtp-Source: AGHT+IEnPiJNG/oj7/+kh6RAedzodkRUYk4QF9wwtfoV5nGrtoSZy6gz9LiDaPpj9MkFnaf4fCDXwZLMuDr77kJP5eE= X-Received: by 2002:a2e:8041:0:b0:2bf:6852:9339 with SMTP id p1-20020a2e8041000000b002bf68529339mr4330685ljg.3.1698513901290; Sat, 28 Oct 2023 10:25:01 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 28 Oct 2023 10:25:00 -0700 In-Reply-To: <6135a126-1d6b-4965-8d7a-41028e962ee8@beloved.name> Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=stefankangas@gmail.com; helo=mail-lj1-x233.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311954 Archived-At: David Hedlund writes: >> 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 So how about installing something like the below (on master)? diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi index d8097a8d21e..9f0dce288bc 100644 --- a/doc/misc/efaq.texi +++ b/doc/misc/efaq.texi @@ -3110,45 +3110,22 @@ Escape sequences in shell output @code{ansi-color} package, which lets Shell mode recognize these escape sequences. It is enabled by default. -@node Fullscreen mode on MS-Windows -@section How can I start Emacs in fullscreen mode on MS-Windows? +@node Fullscreen mode +@section How can I start Emacs in fullscreen mode? @cindex Maximize frame @cindex Fullscreen mode -Beginning with Emacs 24.4 either run Emacs with the @samp{--maximized} -command-line option or put the following form in your init file -(@pxref{Setting up a customization file}): - -@lisp -(add-hook 'emacs-startup-hook 'toggle-frame-maximized) -@end lisp - -With older versions use the function @code{w32-send-sys-command}. For -example, you can put the following in your init file: - -@lisp -(add-hook 'emacs-startup-hook - (lambda () (w32-send-sys-command ?\xF030))) -@end lisp - -To avoid the slightly distracting visual effect of Emacs starting with -its default frame size and then growing to fullscreen, you can add an -@samp{Emacs.Geometry} entry to the Windows Registry settings. @xref{X -Resources,,, emacs, The GNU Emacs Manual}. To compute the correct -values for width and height you use in the Registry settings, first -maximize the Emacs frame and then evaluate @code{(frame-height)} and -@code{(frame-width)} with @kbd{M-:}. - -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: +Run Emacs with the @samp{--maximized} command-line option or put the +following form in your early init file (@pxref{Early Init File,,, +emacs, The GNU Emacs Manual}). @lisp -(setq frame-resize-pixelwise t) -(set-frame-position nil 0 0) -(set-frame-size nil (display-pixel-width) (display-pixel-height) t) +(push '(fullscreen . maximized) default-frame-alist) @end lisp +Note that while some customizations of @code{default-frame-alist} +could have undesirable effects when modified in @file{early-init.el}, +it is okay to do it in this particular case. @node Emacs in a Linux console @section How can I alleviate the limitations of the Linux console?