From: Amos Bird <amosbird@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: help-gnu-emacs@gnu.org
Subject: Re: how can I run commands when window displays a different buffer?
Date: Fri, 27 Oct 2017 21:34:31 +0800 [thread overview]
Message-ID: <87lgjw90k8.fsf@gmail.com> (raw)
In-Reply-To: <59F32C2F.8020701@gmx.at>
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 <rudalics@gmx.at> 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
amosbird@gmail.com
next prev parent reply other threads:[~2017-10-27 13:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-27 12:53 how can I run commands when window displays a different buffer? martin rudalics
2017-10-27 13:34 ` Amos Bird [this message]
2017-10-28 8:45 ` martin rudalics
2017-10-28 8:56 ` Amos Bird
2017-10-30 1:52 ` Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2017-10-27 12:04 Amos Bird
2017-10-27 12:18 ` Kaushal Modi
2017-10-27 12:46 ` Amos Bird
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lgjw90k8.fsf@gmail.com \
--to=amosbird@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=rudalics@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).