[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Window focus event
From: |
lxsameer |
Subject: |
Re: Window focus event |
Date: |
Fri, 17 Dec 2021 10:28:59 +0000 |
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, December 16th, 2021 at 3:30 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
> > Regarding the question: I would say `window-configuration-change-hook'
>
> > or `window-state-change-hook' are the best fitting hooks for the task.
> >
> > May depend on your use case.
>
> Indeed.
>
> > Note that Emacs sometimes internally selects windows temporarily
> >
> > (`with-selected-window'), so doing something for every window selection
> >
> > is most of the time not what you want.
>
> Note that neither of the above two hooks are run during
>
> `with-selected-window`, AFAIK.
>
> Stefan
Thanks folks, In the deprecation message of the `focus-in-hook` family, it
refers to `after-focus-change-function`. Isn't it better to change that message
to include these two hooks as well?
publickey - lxsameer@lxsameer.com - 0x037C595D.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature