emacs-devel
[Top][All Lists]
Advanced

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

Re: post-command-hook


From: Antoine Levitt
Subject: Re: post-command-hook
Date: Fri, 01 Apr 2011 20:05:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

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




reply via email to

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