aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-01-05 23:05:46 +0000
committerRichard M. Stallman1997-01-05 23:05:46 +0000
commitcdb9d66596420c686031b92dc4e5a845b5afa34a (patch)
tree86d4dbd0695f15884a05d3f1ae673ec05ebc4536 /src
parentbe17d374c3edadc7e1f261cd27d905d292e2630f (diff)
downloademacs-cdb9d66596420c686031b92dc4e5a845b5afa34a.tar.gz
emacs-cdb9d66596420c686031b92dc4e5a845b5afa34a.zip
(command_loop_1, read_char):
Run Qecho_area_clear_hook when clearing echo area. (Qecho_area_clear_hook): New variable. (syms_of_keyboard): Initialize it.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 37bbb0c2245..ebe32821a28 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -339,6 +339,8 @@ Lisp_Object Vdeactivate_mark;
339Lisp_Object Vlucid_menu_bar_dirty_flag; 339Lisp_Object Vlucid_menu_bar_dirty_flag;
340Lisp_Object Qrecompute_lucid_menubar, Qactivate_menubar_hook; 340Lisp_Object Qrecompute_lucid_menubar, Qactivate_menubar_hook;
341 341
342Lisp_Object Qecho_area_clear_hook;
343
342/* Hooks to run before and after each command. */ 344/* Hooks to run before and after each command. */
343Lisp_Object Qpre_command_hook, Vpre_command_hook; 345Lisp_Object Qpre_command_hook, Vpre_command_hook;
344Lisp_Object Qpost_command_hook, Vpost_command_hook; 346Lisp_Object Qpost_command_hook, Vpost_command_hook;
@@ -1141,6 +1143,7 @@ command_loop_1 ()
1141 Fsit_for (make_number (2), Qnil, Qnil); 1143 Fsit_for (make_number (2), Qnil, Qnil);
1142 /* Clear the echo area. */ 1144 /* Clear the echo area. */
1143 message2 (0); 1145 message2 (0);
1146 safe_run_hooks (Qecho_area_clear_hook);
1144 1147
1145 unbind_to (count, Qnil); 1148 unbind_to (count, Qnil);
1146 1149
@@ -2109,6 +2112,8 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
2109 } 2112 }
2110 2113
2111 /* Wipe the echo area. */ 2114 /* Wipe the echo area. */
2115 if (echo_area_glyphs)
2116 safe_run_hooks (Qecho_area_clear_hook);
2112 echo_area_glyphs = 0; 2117 echo_area_glyphs = 0;
2113 2118
2114 /* Handle things that only apply to characters. */ 2119 /* Handle things that only apply to characters. */
@@ -8199,6 +8204,13 @@ This feature is obsolete; use idle timers instead. See `etc/NEWS'.");
8199This is measured in microseconds."); 8204This is measured in microseconds.");
8200 post_command_idle_delay = 100000; 8205 post_command_idle_delay = 100000;
8201 8206
8207#if 0
8208 DEFVAR_LISP ("echo-area-clear-hook", ...,
8209 "Normal hook run when clearing the echo area.");
8210#endif
8211 Qecho_area_clear_hook = intern ("echo-area-clear-hook");
8212 XSYMBOL (Qecho_area_clear_hook)->value = Qnil;
8213
8202 DEFVAR_LISP ("lucid-menu-bar-dirty-flag", &Vlucid_menu_bar_dirty_flag, 8214 DEFVAR_LISP ("lucid-menu-bar-dirty-flag", &Vlucid_menu_bar_dirty_flag,
8203 "t means menu bar, specified Lucid style, needs to be recomputed."); 8215 "t means menu bar, specified Lucid style, needs to be recomputed.");
8204 Vlucid_menu_bar_dirty_flag = Qnil; 8216 Vlucid_menu_bar_dirty_flag = Qnil;