unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html
@ 2023-04-04 19:11 David Hedlund
  2023-04-04 19:20 ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: David Hedlund @ 2023-04-04 19:11 UTC (permalink / raw)
  To: Emacs-devel

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

 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 
<https://www.gnu.org/software/emacs/manual/html_node/emacs/X-Resources.html#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)

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html
  2023-04-04 19:11 gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
@ 2023-04-04 19:20 ` Eli Zaretskii
  2023-04-04 19:24   ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2023-04-04 19:20 UTC (permalink / raw)
  To: David Hedlund; +Cc: Emacs-devel

> 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?
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?



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html
  2023-04-04 19:20 ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html Eli Zaretskii
@ 2023-04-04 19:24   ` David Hedlund
  2023-04-04 19:33     ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: David Hedlund @ 2023-04-04 19:24 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Emacs-devel

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


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?

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re:  gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html
  2023-04-04 19:24   ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
@ 2023-04-04 19:33     ` Eli Zaretskii
  2023-04-04 19:34       ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2023-04-04 19:33 UTC (permalink / raw)
  To: David Hedlund; +Cc: Emacs-devel

> Date: Tue, 4 Apr 2023 21:24:57 +0200
> Cc: Emacs-devel@gnu.org
> From: David Hedlund <public@beloved.name>
> 
> 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".

Does it really avoid the distraction?  The initial dimensions of the
frame are not its final dimensions, so some resizing does take place,
even with these customizations, doesn't it?



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html
  2023-04-04 19:33     ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html Eli Zaretskii
@ 2023-04-04 19:34       ` David Hedlund
  2023-04-04 22:58         ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
  0 siblings, 1 reply; 11+ messages in thread
From: David Hedlund @ 2023-04-04 19:34 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Emacs-devel

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


On 04/04/2023 21:33, Eli Zaretskii wrote:
>> Date: Tue, 4 Apr 2023 21:24:57 +0200
>> Cc:Emacs-devel@gnu.org
>> From: David Hedlund<public@beloved.name>
>>
>> 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".
> Does it really avoid the distraction?

Yes it does. I've tried it several times to make sure it really works. 
You can try it yourself on Windows.


> The initial dimensions of the
> frame are not its final dimensions, so some resizing does take place,
> even with these customizations, doesn't it?

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html
  2023-04-04 19:34       ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
@ 2023-04-04 22:58         ` David Hedlund
  2023-04-05  4:54           ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: David Hedlund @ 2023-04-04 22:58 UTC (permalink / raw)
  To: emacs-devel

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


On 04/04/2023 21:34, David Hedlund wrote:
>
>
> On 04/04/2023 21:33, Eli Zaretskii wrote:
>>> Date: Tue, 4 Apr 2023 21:24:57 +0200
>>> Cc:Emacs-devel@gnu.org
>>> From: David Hedlund<public@beloved.name>
>>>
>>> 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".
>> Does it really avoid the distraction?
>
> Yes it does. I've tried it several times to make sure it really works. 
> You can try it yourself on Windows.
>
Oh, I forgot to tell you: My solution only works for Windows, not 
GNU/Linux. So I understand if you got confused if you tried it in a distro.


>
>> The initial dimensions of the
>> frame are not its final dimensions, so some resizing does take place,
>> even with these customizations, doesn't it?

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re:  gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html
  2023-04-04 22:58         ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
@ 2023-04-05  4:54           ` Eli Zaretskii
  2023-04-08  4:37             ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2023-04-05  4:54 UTC (permalink / raw)
  To: David Hedlund; +Cc: emacs-devel

> Date: Wed, 5 Apr 2023 00:58:56 +0200
> From: David Hedlund <public@beloved.name>
> 
>  Yes it does. I've tried it several times to make sure it really works. You can try it yourself on Windows.
> 
> Oh, I forgot to tell you: My solution only works for Windows, not GNU/Linux. So I understand if you got
> confused if you tried it in a distro.

Which parts in your code are specific to Windows?

And no, I was aware you were talking about Windows: see the part about
the "task bar".




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html
  2023-04-05  4:54           ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html Eli Zaretskii
@ 2023-04-08  4:37             ` David Hedlund
  2023-04-08  7:20               ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: David Hedlund @ 2023-04-08  4:37 UTC (permalink / raw)
  To: emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 598 bytes --]


On 2023-04-05 06:54, Eli Zaretskii wrote:
>> Date: Wed, 5 Apr 2023 00:58:56 +0200
>> From: David Hedlund<public@beloved.name>
>>
>>   Yes it does. I've tried it several times to make sure it really works. You can try it yourself on Windows.
>>
>> Oh, I forgot to tell you: My solution only works for Windows, not GNU/Linux. So I understand if you got
>> confused if you tried it in a distro.
> Which parts in your code are specific to Windows?

All of it, see the attached file in this email.


>
> And no, I was aware you were talking about Windows: see the part about
> the "task bar".
>
>
Oh.


[-- Attachment #1.2: Type: text/html, Size: 1499 bytes --]

[-- Attachment #2: emacs-for-windows.txt --]
[-- Type: text/plain, Size: 299 bytes --]

;; Emacs for Windows: Avoid the slightly distracting visual effect of Emacs starting with its default frame size and then growing
to fullscreen
(setq frame-resize-pixelwise t)
(set-frame-position (selected-frame) 0 0)
(set-frame-size (selected-frame) (display-pixel-width) (display-pixel-height) t)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re:  gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html
  2023-04-08  4:37             ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
@ 2023-04-08  7:20               ` Eli Zaretskii
  2023-04-08  7:23                 ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2023-04-08  7:20 UTC (permalink / raw)
  To: David Hedlund; +Cc: emacs-devel

> Date: Sat, 8 Apr 2023 06:37:38 +0200
> From: David Hedlund <public@beloved.name>
> 
> > Which parts in your code are specific to Windows?
> 
> All of it, see the attached file in this email.

??? These variables and functions work in any GUI environment that
Emacs supports, including GNU/Linux, any platform that runs X, macOS,
etc.  So I don't quite understand why you say this is
Windows-specific.  What did I miss?



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html
  2023-04-08  7:20               ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html Eli Zaretskii
@ 2023-04-08  7:23                 ` David Hedlund
  2023-04-08  7:27                   ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
  0 siblings, 1 reply; 11+ messages in thread
From: David Hedlund @ 2023-04-08  7:23 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

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


On 2023-04-08 09:20, Eli Zaretskii wrote:
>> Date: Sat, 8 Apr 2023 06:37:38 +0200
>> From: David Hedlund<public@beloved.name>
>>
>>> Which parts in your code are specific to Windows?
>> All of it, see the attached file in this email.
> ??? These variables and functions work in any GUI environment that
> Emacs supports, including GNU/Linux, any platform that runs X, macOS,
> etc.  So I don't quite understand why you say this is
> Windows-specific.  What did I miss?

It can only be used to "avoid the slightly distracting visual effect of 
Emacs starting with its default frame size and then growing to 
fullscreen" in Windows. But NOT in GNU/Linux.

Can someone else please try to explain this?



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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html
  2023-04-08  7:23                 ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
@ 2023-04-08  7:27                   ` David Hedlund
  0 siblings, 0 replies; 11+ messages in thread
From: David Hedlund @ 2023-04-08  7:27 UTC (permalink / raw)
  To: emacs-devel

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


On 2023-04-08 09:23, David Hedlund wrote:
>
>
> On 2023-04-08 09:20, Eli Zaretskii wrote:
>>> Date: Sat, 8 Apr 2023 06:37:38 +0200
>>> From: David Hedlund<public@beloved.name>
>>>
>>>> Which parts in your code are specific to Windows?
>>> All of it, see the attached file in this email.
>> ??? These variables and functions work in any GUI environment that
>> Emacs supports, including GNU/Linux, any platform that runs X, macOS,
>> etc.  So I don't quite understand why you say this is
>> Windows-specific.  What did I miss?
>
> It can only be used to "avoid the slightly distracting visual effect 
> of Emacs starting with its default frame size and then growing to 
> fullscreen" in Windows. But NOT in GNU/Linux.
>
You can use it in GNU/Linux, but it is totally useless to avoid the 
slightly distracting visual effect, so it serves not point. Therefore, 
it's Windows-specific.


> Can someone else please try to explain this?
>
>
>

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-04-08  7:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-04 19:11 gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
2023-04-04 19:20 ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html Eli Zaretskii
2023-04-04 19:24   ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
2023-04-04 19:33     ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html Eli Zaretskii
2023-04-04 19:34       ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
2023-04-04 22:58         ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
2023-04-05  4:54           ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html Eli Zaretskii
2023-04-08  4:37             ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
2023-04-08  7:20               ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html Eli Zaretskii
2023-04-08  7:23                 ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund
2023-04-08  7:27                   ` gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-MS_002dWindows.html David Hedlund

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).