Subject: bug#78180: 31.0.50; Since ab71699e5f2, global value of post-command-hook is useless

From: Michael Heerdegen <[email-masked]>
Date: Fri, 02 May 2025 04:23:01 +0200

Ihor Radchenko <[email-masked]> writes:

> What else _might_ be a problem (but I am a bit lost in how things work
> here) is direct invocations of (run-hooks 'post-command-hook) from
> Elisp: in ert-x.el, gnus-msg.el, org-mouse.el. AFAIU, such calls will
> only execute buffer-local post-comman-hook, not global. Maybe I miss
> something.

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")?

Michael.