]> git.eshelyaron.com Git - emacs.git/commit
Add locked narrowing around pre- and post-command-hook
authorGregory Heytings <gregory@heytings.org>
Sun, 31 Jul 2022 20:32:15 +0000 (20:32 +0000)
committerGregory Heytings <gregory@heytings.org>
Sun, 31 Jul 2022 20:42:09 +0000 (22:42 +0200)
commit5e296283f57b21e962e6e6860e448905f99f281e
tree8f2bdd86d108b821f46d19f926929303313b528d
parenteef591072ab1cbcf2168d7b30b3e1ca1f50717ad
Add locked narrowing around pre- and post-command-hook

* src/keyboard.c (safe_run_hooks_maybe_narrowed): New function.
(command_loop_1): Use it for 'pre-command-hook' and 'post-command-hook'.
(syms_of_keyboard): Update docstrings of 'pre-command-hook' and
'post-command-hook'.

* src/lisp.h: Prototype of the new function.
src/keyboard.c
src/lisp.h