[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a hook when current window or buffer changes?
From: |
Michael Heerdegen |
Subject: |
Re: Is there a hook when current window or buffer changes? |
Date: |
Tue, 02 Apr 2013 23:32:06 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Hi again,
to your original question: no, there is no hook and no trivial
substitute AFAIK.
The reason may be that Emacs often temporarily selects different windows
in the background. An example is `walk-windows', which explicitly calls
`select-window'. So, if there was a hook, it would presumably be called
all the time in situations where you wouldn't expect it.
The solution to your problem depends on what you want to do.
`post-command-hook' could be an option.
Regards,
Michael.