From: Phil Sainty <psainty@orcon.net.nz>
To: Eli Zaretskii <eliz@gnu.org>
Cc: kaushal.modi@gmail.com, emacs-devel@gnu.org
Subject: Re: Help using the right hook for loading theme on emacs daemon GUI
Date: Fri, 25 Jan 2019 08:17:05 +1300 [thread overview]
Message-ID: <d38c9e9b9648ff953b959281a9099383@webmail.orcon.net.nz> (raw)
In-Reply-To: <83va2e6t7r.fsf@gnu.org>
On 2019-01-25 03:11, Eli Zaretskii wrote:
> I think the comment is relevant, because in GUI mode we create a GUI
> frame early during the startup and then delete the initial frame. So
> from the user's perspective, starting Emacs in GUI mode does run the
> hook for the first frame displayed to the user.
I cannot replicate that in 26.1 or 27. Init file contains:
(defun foo (frame)
(message "%S => %S" (selected-frame) frame))
(add-hook 'after-make-frame-functions 'foo)
Starting a new emacs instance, whether GUI or -nw, does not generate
that message.
(I also tried substituting (debug) for the (message) call, and the
debugger was not triggered.)
What am I missing here?
(If it's running the hook, but it's happening before the init file
is processed, then that's surely a no-op for the purposes of this
question?)
-Phil
next prev parent reply other threads:[~2019-01-24 19:17 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-17 15:44 Help using the right hook for loading theme on emacs daemon GUI Kaushal Modi
2019-01-17 15:49 ` Kaushal Modi
2019-01-17 15:55 ` Eli Zaretskii
2019-01-17 16:04 ` Kaushal Modi
2019-01-17 19:28 ` Daniel Colascione
2019-01-17 18:33 ` martin rudalics
2019-01-17 20:02 ` Kaushal Modi
2019-01-17 21:50 ` Eli Zaretskii
2019-01-22 20:25 ` Kaushal Modi
2019-01-18 3:47 ` Phil Sainty
2019-01-22 20:27 ` Kaushal Modi
2019-01-23 22:00 ` Phil Sainty
2019-01-24 3:47 ` Phil Sainty
2019-01-24 14:11 ` Eli Zaretskii
2019-01-24 19:17 ` Phil Sainty [this message]
2019-01-24 19:44 ` Eli Zaretskii
2019-01-24 21:16 ` Phil Sainty
2019-01-25 1:42 ` Phil Sainty
2019-01-25 7:20 ` Eli Zaretskii
2019-01-25 7:13 ` Eli Zaretskii
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=d38c9e9b9648ff953b959281a9099383@webmail.orcon.net.nz \
--to=psainty@orcon.net.nz \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=kaushal.modi@gmail.com \
/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.