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: Phil Sainty
Subject: Re: Help using the right hook for loading theme on emacs daemon GUI
Date: Fri, 25 Jan 2019 14:42:53 +1300
User-agent: Orcon Webmail

On 2019-01-25 10:16, Phil Sainty wrote:
I was already thinking that the `after-make-frame-functions' docstring
could use some additional information (it seems to be a common point
of confusion when people start using --daemon)

I forgot to add -- the point I originally thought this docstring needed
to make was that FRAME will not be selected when the hook runs, and it is
up to the function to select it if required.

I'd be inclined to have the docstring suggest that the following be used
in that scenario:

(with-selected-frame FRAME
  ...)

This is rather more apparent when one looks at the documentation for
`make-frame' itself, but people won't necessarily feel the need to do
that; and while one can *guess* that this may be the case from the fact
that FRAME is being passed to the hook at all, I think it would be better
to make it explicit in the hook documentation.


-Phil




reply via email to

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