summaryrefslogtreecommitdiff
path: root/src/lisp.h
diff options
context:
space:
mode:
authorGregory Heytings <gregory@heytings.org>2022-07-31 20:32:15 +0000
committerGregory Heytings <gregory@heytings.org>2022-07-31 22:42:09 +0200
commit5e296283f57b21e962e6e6860e448905f99f281e (patch)
tree8f2bdd86d108b821f46d19f926929303313b528d /src/lisp.h
parenteef591072ab1cbcf2168d7b30b3e1ca1f50717ad (diff)
downloademacs-5e296283f57b21e962e6e6860e448905f99f281e.tar.gz
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.
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lisp.h b/src/lisp.h
index 8fcc9b6e75a..7136bb3dc1e 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -4829,6 +4829,7 @@ extern bool detect_input_pending (void);
extern bool detect_input_pending_ignore_squeezables (void);
extern bool detect_input_pending_run_timers (bool);
extern void safe_run_hooks (Lisp_Object);
+extern void safe_run_hooks_maybe_narrowed (Lisp_Object, struct window *);
extern void cmd_error_internal (Lisp_Object, const char *);
extern Lisp_Object command_loop_2 (Lisp_Object);
extern Lisp_Object read_menu_command (void);