all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Phil Sainty <psainty@orcon.net.nz>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Help using the right hook for loading theme on emacs daemon GUI
Date: Tue, 22 Jan 2019 15:27:55 -0500	[thread overview]
Message-ID: <CAFyQvY2DEOJsXikNCfqw1CeWQnUgm0rdRh+8ixv+VZK=bt5u7w@mail.gmail.com> (raw)
In-Reply-To: <e5d75347129a35c09eeb6bee2719b016@webmail.orcon.net.nz>

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

Hi Phil,

On Thu, Jan 17, 2019 at 10:47 PM Phil Sainty <psainty@orcon.net.nz> wrote:

>
> I'm not sure whether it's relevant in this case, but in general you
> don't want to ignore the FRAME argument with after-make-frame-functions,
> otherwise you don't know which frame is selected when your code is
> evaluated.  e.g.:
>
> (lambda (frame)
>    (with-selected-frame frame
>      ...))
>

I'll keep that in mind. For the reason in that comment,
after-make-frame-functions did not work for me, so I had stopped using it.

Also, my workflow always uses only 1 frame. So there wasn't the problem of
selecting the frame (I think it selected the one and only frame then open
by default).

Though, it's good to know the right way of using that frame argument.

Thanks.

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

  reply	other threads:[~2019-01-22 20:27 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 [this message]
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
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='CAFyQvY2DEOJsXikNCfqw1CeWQnUgm0rdRh+8ixv+VZK=bt5u7w@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=psainty@orcon.net.nz \
    /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.