unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Phil Sainty <psainty@orcon.net.nz>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Help using the right hook for loading theme on emacs daemon GUI
Date: Thu, 24 Jan 2019 16:47:59 +1300	[thread overview]
Message-ID: <6c1611672809c8d7b5011edf0d2dd831@webmail.orcon.net.nz> (raw)
In-Reply-To: <CAFyQvY2DEOJsXikNCfqw1CeWQnUgm0rdRh+8ixv+VZK=bt5u7w@mail.gmail.com>

On 2019-01-23 09:27, Kaushal Modi wrote:
> For the reason in that comment, after-make-frame-functions did not
> work for me, so I had stopped using it.

Where the comment in question was:

;; `after-make-frame-functions' hook is not run in no-window mode

Which is a bit confusing to me.

If you are creating a new frame with the -nw option for an existing
Emacs instance then `after-make-frame-functions' definitely runs.
(Certainly in 26.1, where I just tested it.)

It's true that just running 'emacs -nw' does not run that hook for the
initial frame -- but then neither does it run for the initial frame
when you start 'emacs' in GUI mode, so the "no-window mode" part does
not seem relevant.

It's quite common to add a function to `after-make-frame-functions'
and to also call that function directly during init (or in
`after-init-hook' or some such) to process the initial frame.


-Phil




  parent reply	other threads:[~2019-01-24  3:47 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 [this message]
2019-01-24 14:11       ` Eli Zaretskii
2019-01-24 19:17         ` Phil Sainty
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

  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=6c1611672809c8d7b5011edf0d2dd831@webmail.orcon.net.nz \
    --to=psainty@orcon.net.nz \
    --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 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).