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

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

Re: how can I run commands when window displays a different buffer?


From: martin rudalics
Subject: Re: how can I run commands when window displays a different buffer?
Date: Fri, 27 Oct 2017 14:53:03 +0200

In a function on ‘window-configuration-change-hook’ you have to remember
all window-buffer associations in a list, removing defunct windows from
that list.  If you find a window whose association changed since the
last time that hook was run (and maybe also if you find a new window),
you know that that "window displays a different buffer" now.

martin




reply via email to

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