[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Window focus event
From: |
Stefan Monnier |
Subject: |
Re: Window focus event |
Date: |
Thu, 16 Dec 2021 09:30:29 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> 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