‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Thursday, December 16th, 2021 at 3:30 PM, Stefan Monnier 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?