From: Antoine Levitt <antoine.levitt@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: post-command-hook
Date: Fri, 01 Apr 2011 20:05:54 +0200 [thread overview]
Message-ID: <87k4fd3kzh.fsf@gmail.com> (raw)
In-Reply-To: 4D95F608.8020501@gmx.at
01/04/11 17:58, martin rudalics
> After updating my trunk I'm completely lost with the following issue:
> With emacs -Q, switch to the buffer *Messages*, make it empty and
> evaluate the following forms in it:
>
> (defun foo ()
> (message "foo"))
>
> (defun bar ()
> (message "bar"))
>
> (add-hook 'post-command-hook 'foo)
> (add-hook 'post-command-hook 'bar nil t)
>
> Now move around that buffer. Here it only runs the local hook function
> "bar". It does _not_ run the global hook function "foo".
>
> All my earlier Emacs versions run both hooks alternately.
>
> GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
> of 2011-04-01 on NESTOR
>
> Help appreciated, martin
Ah, this is probably related to the bug I'm seeing
(http://permalink.gmane.org/gmane.emacs.devel/137894). This setup should
be easier to debug though.
I think buffer-local post-command-hooks are messed up somehow (the other
code that triggers the bug also uses local hooks), but I can't figure
out the part that introduced it in
5e4cb836580a8ef2f9ea9b4b8317005941920027
next prev parent reply other threads:[~2011-04-01 18:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-01 15:58 post-command-hook martin rudalics
2011-04-01 18:05 ` Antoine Levitt [this message]
2011-04-02 7:02 ` post-command-hook martin rudalics
2011-04-02 8:36 ` post-command-hook Antoine Levitt
2011-04-02 14:25 ` post-command-hook Juanma Barranquero
2011-04-02 21:40 ` post-command-hook Stefan Monnier
2011-04-02 22:00 ` post-command-hook Antoine Levitt
2011-04-02 22:38 ` post-command-hook Johan Bockgård
2011-04-04 1:09 ` post-command-hook Stefan Monnier
2011-04-03 7:38 ` post-command-hook martin rudalics
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=87k4fd3kzh.fsf@gmail.com \
--to=antoine.levitt@gmail.com \
--cc=emacs-devel@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 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).