Re: Display feature request: gud-overlay-arrow

From:

Kim F. Storm

Subject:

Re: Display feature request: gud-overlay-arrow

Date:

Tue, 21 Mar 2006 22:58:48 +0100

User-agent:

Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Richard Stallman <address@hidden> writes:
> I guess it would be easier to do if we had a "post-switch-buffer-hook"
> that
> is called (after post-command-hook) whenever a new buffer is selected
> in the command loop.
>
> I really don't like the idea that Emacs could run hooks when switching
> buffers. It would make things rather uncontrollable.
Quite the opposite, IMHO.
It cannot possibly be worse than the current abuse of the post-command-hook
to do all sorts of things that would be better done by specific hooks like:
post-switch-buffer-hook (when last command switched buffers)
post-switch-window-hook (when last command switched windows)
post-modify-buffer-hook (when last command modified selected buffer)
I'm pretty sure there are modes which uses various post-command-hook
tricks to accomplish the equivalent of these hooks.
--
Kim F. Storm <address@hidden> http://www.cua.dk