From: storm@cua.dk (Kim F. Storm)
Cc: nickrob@snap.net.nz, emacs-devel@gnu.org
Subject: Re: Display feature request: gud-overlay-arrow
Date: Tue, 21 Mar 2006 22:58:48 +0100 [thread overview]
Message-ID: <m38xr3o3xj.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <E1FLmUi-0007EF-0n@fencepost.gnu.org> (Richard Stallman's message of "Tue, 21 Mar 2006 14:26:16 -0500")
Richard Stallman <rms@gnu.org> 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 <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2006-03-21 21:58 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-20 22:59 Display feature request: gud-overlay-arrow Nick Roberts
2006-03-20 23:42 ` Kim F. Storm
2006-03-21 3:55 ` Nick Roberts
2006-03-21 9:27 ` Kim F. Storm
2006-03-21 10:35 ` Nick Roberts
2006-03-21 13:43 ` Kim F. Storm
2006-03-22 3:20 ` Nick Roberts
2006-03-22 20:43 ` Kim F. Storm
2006-03-23 5:15 ` John S. Yates, Jr.
2006-03-23 5:04 ` Miles Bader
2006-03-23 5:51 ` Nick Roberts
2006-03-23 6:26 ` Miles Bader
2006-03-23 21:28 ` Nick Roberts
2006-03-23 8:59 ` Nick Roberts
2006-03-23 10:23 ` Kim F. Storm
2006-03-23 21:59 ` Nick Roberts
2006-03-21 19:26 ` Richard Stallman
2006-03-21 19:40 ` Masatake YAMATO
2006-03-21 22:01 ` Stefan Monnier
2006-03-21 21:58 ` Kim F. Storm [this message]
2006-03-22 13:44 ` Richard Stallman
2006-03-22 17:50 ` Kim F. Storm
2006-03-23 19:47 ` Richard Stallman
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=m38xr3o3xj.fsf@kfs-l.imdomain.dk \
--to=storm@cua.dk \
--cc=emacs-devel@gnu.org \
--cc=nickrob@snap.net.nz \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).