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: Amos Bird
Subject: Re: how can I run commands when window displays a different buffer?
Date: Fri, 27 Oct 2017 21:34:31 +0800
User-agent: mu4e 0.9.19; emacs 25.3.1


Thanks martin!

I was thinking the similar but cannot find a way to construct the window-buffer associations. Do you mind giving me some hint :)

regards,

martin rudalics <address@hidden> writes:

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


--
Amos Bird
address@hidden



reply via email to

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