emacs-devel
[Top][All Lists]
Advanced

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

Re: Window focus event


From: Michael Heerdegen
Subject: Re: Window focus event
Date: Thu, 16 Dec 2021 09:08:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

lxsameer <lxsameer@lxsameer.com> writes:

> Hey folks,

Hello.

> I was wondering if there is a hook or a way to detect when focus
> changes from a window to another?
>
> I know about the obsolete `focous-in-hook'. But it seems that its
> replacement doesn't do the same and works only on frame level.

This question would probably better fit and get more attention in
emacs-help.  People seem to be quite busy here ATM.

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.

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.

Michael.



reply via email to

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