From: Alexander Shukaev <haroogan@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Update `minibuffer-line' on buffer switches
Date: Mon, 29 Jun 2015 18:31:25 +0200 [thread overview]
Message-ID: <CAKu-7WxkrA1xioRH9cbX1FvJ0a6-w_8xQNXwurCxnx4eP9ReOQ@mail.gmail.com> (raw)
In-Reply-To: <jwv4mlrry45.fsf-monnier+gnu.emacs.help@gnu.org>
Would `window-configuration-change-hook' work in case when a buffer is
switched in-place (i.e. all windows stay intact and the selected window is
not changed but only the displayed buffer inside this window is switched)?
Adding a hook to `select-window' could work, but could be a bit tricky
> since this function is sometimes used internally at places which don't
> correspond to something which the end-user would consider as relevant.
This again seems not to take into account the above scenario. In other
words, really the buffer switching event is needed (regardless of what's
going on with windows).
Not sure how often that would be useful.
To be honest it's not the first time that I find myself in a situation
when I simply need to hook the event of buffer (focus) switching and/or
window (focus) switching, etc.
Regards,
Alexander
next prev parent reply other threads:[~2015-06-29 16:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-27 14:22 Update `minibuffer-line' on buffer switches Alexander Shukaev
2015-06-27 15:43 ` Michael Heerdegen
2015-06-27 21:59 ` Stefan Monnier
2015-06-28 17:19 ` Alexander Shukaev
2015-06-28 17:38 ` Alexander Shukaev
[not found] ` <mailman.5854.1435513096.904.help-gnu-emacs@gnu.org>
2015-06-29 3:36 ` Stefan Monnier
2015-06-29 16:31 ` Alexander Shukaev [this message]
2015-06-29 17:00 ` Eli Zaretskii
2015-06-29 19:02 ` Alexander Shukaev
2015-06-29 19:50 ` Alexander Shukaev
-- strict thread matches above, loose matches on Subject: below --
2015-06-29 17:15 martin rudalics
2015-06-29 19:00 ` Alexander Shukaev
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=CAKu-7WxkrA1xioRH9cbX1FvJ0a6-w_8xQNXwurCxnx4eP9ReOQ@mail.gmail.com \
--to=haroogan@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).