GNU bug report logs - #78180
31.0.50; Since ab71699e5f2, global value of post-command-hook is useless

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> posteo.net>

Date: Thu, 1 May 2025 08:46:01 UTC

Severity: normal

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #34 received at 78180-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: michael_heerdegen <at> web.de, 78180-done <at> debbugs.gnu.org
Subject: Re: bug#78180: 31.0.50; Since ab71699e5f2, global value of
 post-command-hook is useless
Date: Sat, 17 May 2025 11:04:15 +0300
> From: Ihor Radchenko <yantar92 <at> posteo.net>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 78180 <at> debbugs.gnu.org
> Date: Fri, 02 May 2025 06:54:08 +0000
> 
> Michael Heerdegen <michael_heerdegen <at> web.de> writes:
> 
> > Just to be sure: you are aware that in the normal case the global hook
> > binding will always be executed (additionally), as long as the symbol t
> > is not removed from the local hook binding, as explained in
> > (info "(elisp) Setting Hooks")?
> 
> I was not aware! That's embarrassing.
> 
> Now, I see
> 
>      If the hook variable is buffer-local, the buffer-local variable
>      will be used instead of the global variable.  However, if the
>      buffer-local variable contains the element ‘t’, the global hook
>      variable will be run as well.
> 
> IMHO, that detail might look good in 24.1 Hooks section itself, as it
> appears to be important. But maybe it is just me who did not notice
> this.
> 
> In any case, there is no bug in what I reported. Just my
> misunderstanding. Feel free to close.

No further comments, so I'm now closing this bug.




This bug report was last modified 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.