emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help using the right hook for loading theme on emacs daemon GUI


From: Kaushal Modi
Subject: Re: Help using the right hook for loading theme on emacs daemon GUI
Date: Tue, 22 Jan 2019 15:27:55 -0500

Hi Phil,

On Thu, Jan 17, 2019 at 10:47 PM Phil Sainty <address@hidden> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]