From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Hook for "buffer switched"
Date: Wed, 15 Dec 2010 00:07:04 -0500 [thread overview]
Message-ID: <jwv62uv3a0j.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.1.1292332531.794.help-gnu-emacs@gnu.org
> Is there any hook that is run when a buffer is switched?
I think generally the answer is "no", tho this question is ill-formed:
it's not clear what you mean by switching buffer: do you mean "change
the currently active buffer" (i.e. what is done by `set-buffer'), or
"change the buffer displayed in the current window", or "select
a different window showing a different buffer", or ...
> If not, why not?
Maybe because to a large extent it's an ill-defined problem and once
they try to define it better, people seem to end up deciding they don't
really need to solve it any more?
E.g. often the original problem of the OP becomes simply unsolvable in
the general context, such as when a buffer is displayed in several
windows at the same time.
Stefan
next parent reply other threads:[~2010-12-15 5:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1.1292332531.794.help-gnu-emacs@gnu.org>
2010-12-15 5:07 ` Stefan Monnier [this message]
2010-12-15 9:02 ` Hook for "buffer switched" Elena
2010-12-15 10:22 ` Deniz Dogan
2010-12-15 10:33 ` egarrulo
2010-12-15 10:49 ` Deniz Dogan
2010-12-15 15:40 ` Peter Dyballa
2010-12-15 15:48 ` Stefan Monnier
2010-12-14 13:14 Deniz Dogan
2010-12-14 13:18 ` Leo
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv62uv3a0j.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.