]> git.eshelyaron.com Git - emacs.git/commit
Fix buffer-list-update-hook for indirect buffers
authorBasil L. Contovounesios <contovob@tcd.ie>
Wed, 11 Jan 2023 16:34:07 +0000 (16:34 +0000)
committerBasil L. Contovounesios <contovob@tcd.ie>
Tue, 17 Jan 2023 10:38:22 +0000 (10:38 +0000)
commitbd094207c76c500f8a3bffe8231d8c6ae0fd0778
tree715c592a1fbd3f8f3f15672fb895d93668956b94
parent9e7a5d58eea664b55e11f2ea5dc7da9ba26d500f
Fix buffer-list-update-hook for indirect buffers

Fmake_indirect_buffer can be told whether to run buffer hooks since
bug#49160, but until now it ran buffer-list-update-hook irrespective
of this.

* src/buffer.c (Fmake_indirect_buffer): Don't run
buffer-list-update-hook when called with a non-nil
INHIBIT-BUFFER-HOOKS argument.
(run_buffer_list_update_hook): Don't special-case NULL argument, as
no such callers remain.

* test/src/buffer-tests.el
(buffer-tests-inhibit-buffer-hooks-indirect): Test whether indirect
buffer hooks are run regardless of whether base buffer hooks are
inhibited.  Check that all three buffer hooks, not just
kill-buffer-query-functions, are inhibited.
src/buffer.c
test/src/buffer-tests.el