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

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

Re: Detect window switches?


From: Stefan Monnier
Subject: Re: Detect window switches?
Date: Fri, 27 Sep 2013 09:13:47 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> I don't think redisplay-window-hook would help in this case, but if it
> will, so will an idle timer, since the code that runs off that hook
> will simply sample the situation at more or less regular intervals.
> Doing that from a timer is probably an approximation that is "good
> enough".

There are plenty of "good enough" solutions (e.g. post-command-hook).
But a `before-redisplay-hook' would make it possible to write a reliable
solution, rather than just a "good enough" one.


        Stefan




reply via email to

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