help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Detect window switches?


From: Eli Zaretskii
Subject: Re: Detect window switches?
Date: Thu, 26 Sep 2013 20:49:32 +0300

> From: Joost Kremers <joostkremers@yahoo.com>
> Date: 26 Sep 2013 16:54:34 GMT
> 
> What I'd like to know is if it's possible to detect when a window
> goes from being selected to being not selected and vice versa. Or,
> alternatively, when a buffer goes from being current to not current
> and vice versa.

There's always post-command-hook, where you can test whether the
current-buffer is one of yours, and act accordingly.



reply via email to

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