From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: on interface and behavior (Was: Re: indentation)
Date: Fri, 30 Apr 2021 10:53:50 +0300 [thread overview]
Message-ID: <83a6pgcinl.fsf@gnu.org> (raw)
In-Reply-To: <86h7jo4vr3.fsf_-_@protonmail.com> (message from Wayne Harris via Users list for the GNU Emacs text editor on Thu, 29 Apr 2021 18:38:08 -0300)
> Date: Thu, 29 Apr 2021 18:38:08 -0300
> From: Wayne Harris via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
>
> (*) The case of frames in Windows
>
> Speaking of which, FWIW, I have gone through extra lengths to try to get
> frames to show up more consistently on Windows. Windows has no
> reasonable window manager, so that's left for the applications
> themselves. Most windows programs save their window sizes and position
> before quitting and restore when they come back alive. The GNU Emacs
> does not.
Emacs can save and restore the frame geometry if you use the
desktop.el package to resume your sessions. This is in the manual.
> I would appreciate --- as a default behavior --- the GNU Emacs on
> Windows remembering the size and position of the window before shuting
> down.
We have that as an optional feature, see above.
> You can specify geometry-related options for just the initial
> frame by setting this variable in your init file; however, they
> won’t take effect until Emacs reads your init file, which happens
> after creating the initial frame. If you want the initial frame
> to have the proper geometry as soon as it appears, you need to
> use this three-step process:
> * Specify X resources to give the geometry you want.
> * Set ‘default-frame-alist’ to override these options so that they
> don’t affect subsequent frames.
> * Set ‘initial-frame-alist’ in a way that matches the X resources,
> to override what you put in ‘default-frame-alist’.
>
> [back]
> --8<---------------cut here---------------end--------------->8---
>
> One last bullet could mention the full syntax of --geometry. Maybe
> --help could as well: it doesn't.
>
> (*) A suggested approach for Windows
>
> I believe the problem could be solved for Windows specifically by
> restoring the size and position of the initial-frame in w32-win.el. Of
> course, the size and position should be saved before exit.
Emacs on MS-Windows emulates X resources by storing them in the
Registry. This is also described in the user manual, which see. So
you can have this feature even without desktop.el, if you want.
P.S. One thing I learned about Emacs a long time ago is that for any
issue that might worry you, it is likely that someone already solved
it in Emacs. So the first thing I do when U bump into such annoyances
is to search the manual and the built-in documentation for similar
features. Usually, I find a solution that is ready to be used; I
stopped being amazed by that long time ago.
next prev parent reply other threads:[~2021-04-30 7:53 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-27 7:03 indentation ptlo
2021-04-27 7:25 ` indentation Philip Kaludercic
2021-04-27 15:45 ` indentation ptlo
2021-04-27 16:06 ` indentation Colin Baxter
2021-04-27 18:43 ` indentation Thibaut Verron
2021-04-27 19:00 ` indentation Colin Baxter
2021-04-27 19:20 ` indentation Thibaut Verron
2021-04-27 20:02 ` indentation Colin Baxter
2021-04-28 8:36 ` indentation Thibaut Verron
2021-04-27 9:30 ` indentation Gregory Heytings
2021-04-27 9:47 ` indentation Joost Kremers
2021-04-27 16:55 ` indentation Stefan Monnier
2021-04-27 22:12 ` indentation Gregory Heytings
2021-04-27 15:01 ` [External] : indentation Drew Adams
2021-04-27 17:04 ` Stefan Monnier
2021-04-27 17:54 ` Drew Adams
2021-04-27 20:23 ` Stefan Monnier
2021-04-27 22:28 ` Stefan Monnier
2021-04-27 17:07 ` indentation Stefan Monnier
2021-04-27 18:29 ` indentation ptlo
2021-04-27 20:31 ` indentation Stefan Monnier
2021-04-28 6:32 ` indentation ptlo
2021-04-28 6:42 ` indentation Joost Kremers
2021-04-28 14:14 ` indentation Stefan Monnier
2021-04-29 7:14 ` indentation ptlo
2021-04-29 13:43 ` indentation Stefan Monnier
2021-04-29 14:23 ` indentation Emanuel Berg via Users list for the GNU Emacs text editor
2021-04-29 21:38 ` on interface and behavior (Was: Re: indentation) Wayne Harris via Users list for the GNU Emacs text editor
2021-04-30 7:53 ` Eli Zaretskii [this message]
2021-05-01 13:30 ` on interface and behavior Wayne Harris via Users list for the GNU Emacs text editor
2021-04-30 7:05 ` indentation ptlo
2021-04-30 7:58 ` indentation Philip Kaludercic
2021-04-30 8:54 ` indentation ptlo
2021-04-30 9:09 ` indentation Thibaut Verron
2021-04-30 9:18 ` indentation ptlo
2021-04-30 16:49 ` [External] : indentation Drew Adams
2021-04-30 19:05 ` indentation Jean Louis
2021-04-30 19:59 ` indentation Stefan Monnier
2021-04-30 21:58 ` indentation Emanuel Berg via Users list for the GNU Emacs text editor
2021-04-29 21:14 ` indentation Wayne Harris via Users list for the GNU Emacs text editor
2021-04-30 20:17 ` indentation Tassilo Horn
2021-05-01 13:43 ` indentation Wayne Harris via Users list for the GNU Emacs text editor
2021-05-02 7:20 ` indentation Tassilo Horn
2021-05-04 21:03 ` indentation Wayne Harris via Users list for the GNU Emacs text editor
2021-05-05 1:46 ` indentation Stefan Monnier via Users list for the GNU Emacs text editor
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=83a6pgcinl.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@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.
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).