GNU bug report logs -
#78180
31.0.50; Since ab71699e5f2, global value of post-command-hook is useless
Previous Next
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 #26 received at 78180 <at> debbugs.gnu.org (full text, mbox):
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.
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
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.