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

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

Re: Is there a hook when current window or buffer changes?


From: Lowell Gilbert
Subject: Re: Is there a hook when current window or buffer changes?
Date: Tue, 02 Apr 2013 15:43:03 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix)

Steven Degutis <sbdegutis@gmail.com> writes:

> Advising functions is limited. For example, if you select a window with
> your mouse, no function is called interactively, it just changes the window.

mouse-leave-buffer-hook?
mouse-select-window?
mouse-drag-region?

> Maybe I can use the same hook modeline uses to know how to color itself
> active or inactive?

Not a good idea. A lot of the modeline handling isn't done in lisp.



reply via email to

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