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

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

Re: Hook for "buffer switched"


From: Stefan Monnier
Subject: Re: Hook for "buffer switched"
Date: Wed, 15 Dec 2010 00:07:04 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> 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


reply via email to

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