From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Understanding after-make-frame-functions
Date: Tue, 17 May 2016 23:18:11 +0300 [thread overview]
Message-ID: <837fes4ews.fsf@gnu.org> (raw)
In-Reply-To: <CAFyQvY3j4wMEG4oY80rRd3c1=JyVj92NSHwcf-vcZr_KhS5kFw@mail.gmail.com> (message from Kaushal Modi on Tue, 17 May 2016 18:08:43 +0000)
> From: Kaushal Modi <kaushal.modi@gmail.com>
> Date: Tue, 17 May 2016 18:08:43 +0000
>
> What Emacs does during startup is documented in the ELisp manual, see
> the node "Startup Summary". If you have specific suggestions for
> amendments there, please file a bug report with those suggestions.
>
> I had already gone through that but it does not talk about the nuance that in daemon mode case, the frame is
> created after the window-setup-hook is run; whereas it is created before evaluating the init in the case of
> non-daemon mode. The side effect of that on after-make-frame-functions hook being useful only for daemon
> cases is also not mentioned anywhere.
When Emacs starts in daemon mode, it doesn't create any frames at all,
so I don't think I understand what you are saying here.
> I do not know what's the correct terminology to be used for "user emacs config", "daemon mode" and
> "non-daemon mode" in documentation, but the idea for after-make-frame-functions documentation is as
> below:
>
> =====
> Functions to run after a frame is created.
> The functions are run with one arg, the newly created frame.
>
> In daemon mode (emacs --daemon or emacsclient), the frame is created at some point after the
> `window-setup-hook' is run (after the user emacs config is evaluated). So this hook is called _after_ the user
> config evaluation.
>
> But in the non-daemon mode, the frame is created before the user emacs config is evaluated. So this hook is
> run before that, and so any user customization done to this hook would be ineffective in the non-daemon
> case.
I think it would be clearer just to say that this hook cannot be used
for the initial frame.
next prev parent reply other threads:[~2016-05-17 20:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-16 23:35 Understanding after-make-frame-functions Kaushal Modi
2016-05-16 23:42 ` Kaushal Modi
2016-05-17 3:39 ` Eli Zaretskii
2016-05-17 3:44 ` Eli Zaretskii
2016-05-17 16:15 ` Kaushal Modi
2016-05-17 16:36 ` Eli Zaretskii
2016-05-17 18:08 ` Kaushal Modi
2016-05-17 20:18 ` Eli Zaretskii [this message]
2016-05-18 2:31 ` Kaushal Modi
2016-05-18 2:39 ` Eli Zaretskii
2016-05-18 2:46 ` Kaushal Modi
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=837fes4ews.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.
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.