diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 20 | ||||
| -rw-r--r-- | src/lisp.h | 1 |
2 files changed, 3 insertions, 18 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 01a49e3d8bf..810f8eb6480 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1286,8 +1286,7 @@ command_loop_1 (void) | |||
| 1286 | /* Note that the value cell will never directly contain nil | 1286 | /* Note that the value cell will never directly contain nil |
| 1287 | if the symbol is a local variable. */ | 1287 | if the symbol is a local variable. */ |
| 1288 | if (!NILP (Vpost_command_hook) && !NILP (Vrun_hooks)) | 1288 | if (!NILP (Vpost_command_hook) && !NILP (Vrun_hooks)) |
| 1289 | safe_run_hooks_maybe_narrowed (Qpost_command_hook, | 1289 | safe_run_hooks (Qpost_command_hook); |
| 1290 | XWINDOW (selected_window)); | ||
| 1291 | 1290 | ||
| 1292 | /* If displaying a message, resize the echo area window to fit | 1291 | /* If displaying a message, resize the echo area window to fit |
| 1293 | that message's size exactly. */ | 1292 | that message's size exactly. */ |
| @@ -1455,8 +1454,7 @@ command_loop_1 (void) | |||
| 1455 | Vthis_command = cmd; | 1454 | Vthis_command = cmd; |
| 1456 | Vreal_this_command = cmd; | 1455 | Vreal_this_command = cmd; |
| 1457 | 1456 | ||
| 1458 | safe_run_hooks_maybe_narrowed (Qpre_command_hook, | 1457 | safe_run_hooks (Qpre_command_hook); |
| 1459 | XWINDOW (selected_window)); | ||
| 1460 | 1458 | ||
| 1461 | if (NILP (Vthis_command)) | 1459 | if (NILP (Vthis_command)) |
| 1462 | /* nil means key is undefined. */ | 1460 | /* nil means key is undefined. */ |
| @@ -1506,8 +1504,7 @@ command_loop_1 (void) | |||
| 1506 | } | 1504 | } |
| 1507 | kset_last_prefix_arg (current_kboard, Vcurrent_prefix_arg); | 1505 | kset_last_prefix_arg (current_kboard, Vcurrent_prefix_arg); |
| 1508 | 1506 | ||
| 1509 | safe_run_hooks_maybe_narrowed (Qpost_command_hook, | 1507 | safe_run_hooks (Qpost_command_hook); |
| 1510 | XWINDOW (selected_window)); | ||
| 1511 | 1508 | ||
| 1512 | /* If displaying a message, resize the echo area window to fit | 1509 | /* If displaying a message, resize the echo area window to fit |
| 1513 | that message's size exactly. Do this only if the echo area | 1510 | that message's size exactly. Do this only if the echo area |
| @@ -1903,17 +1900,6 @@ safe_run_hooks (Lisp_Object hook) | |||
| 1903 | } | 1900 | } |
| 1904 | 1901 | ||
| 1905 | void | 1902 | void |
| 1906 | safe_run_hooks_maybe_narrowed (Lisp_Object hook, struct window *w) | ||
| 1907 | { | ||
| 1908 | specpdl_ref count = SPECPDL_INDEX (); | ||
| 1909 | |||
| 1910 | specbind (Qinhibit_quit, Qt); | ||
| 1911 | run_hook_with_args (2, ((Lisp_Object []) {hook, hook}), | ||
| 1912 | safe_run_hook_funcall); | ||
| 1913 | unbind_to (count, Qnil); | ||
| 1914 | } | ||
| 1915 | |||
| 1916 | void | ||
| 1917 | safe_run_hooks_2 (Lisp_Object hook, Lisp_Object arg1, Lisp_Object arg2) | 1903 | safe_run_hooks_2 (Lisp_Object hook, Lisp_Object arg1, Lisp_Object arg2) |
| 1918 | { | 1904 | { |
| 1919 | specpdl_ref count = SPECPDL_INDEX (); | 1905 | specpdl_ref count = SPECPDL_INDEX (); |
diff --git a/src/lisp.h b/src/lisp.h index d1431352845..3fddb090f61 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -4855,7 +4855,6 @@ extern bool detect_input_pending (void); | |||
| 4855 | extern bool detect_input_pending_ignore_squeezables (void); | 4855 | extern bool detect_input_pending_ignore_squeezables (void); |
| 4856 | extern bool detect_input_pending_run_timers (bool); | 4856 | extern bool detect_input_pending_run_timers (bool); |
| 4857 | extern void safe_run_hooks (Lisp_Object); | 4857 | extern void safe_run_hooks (Lisp_Object); |
| 4858 | extern void safe_run_hooks_maybe_narrowed (Lisp_Object, struct window *); | ||
| 4859 | extern void safe_run_hooks_2 (Lisp_Object, Lisp_Object, Lisp_Object); | 4858 | extern void safe_run_hooks_2 (Lisp_Object, Lisp_Object, Lisp_Object); |
| 4860 | extern void cmd_error_internal (Lisp_Object, const char *); | 4859 | extern void cmd_error_internal (Lisp_Object, const char *); |
| 4861 | extern Lisp_Object command_loop_2 (Lisp_Object); | 4860 | extern Lisp_Object command_loop_2 (Lisp_Object); |