aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-07-27 05:37:42 +0000
committerRichard M. Stallman1998-07-27 05:37:42 +0000
commit426939cc8b3915caaca667ebc4f9465bf0cbec0b (patch)
tree3b3213e8162e52152d27ba638a1d905073433819 /src
parent7e5ad777442c0e70d15995fd1005602ab475e99d (diff)
downloademacs-426939cc8b3915caaca667ebc4f9465bf0cbec0b.tar.gz
emacs-426939cc8b3915caaca667ebc4f9465bf0cbec0b.zip
(Fexecute_extended_command):
Don't delay before displaying the suggestion message if the command did not display anything in the echo area.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index e5d0a8946e7..3c5ebbb9b8d 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -7891,9 +7891,18 @@ DEFUN ("execute-extended-command", Fexecute_extended_command, Sexecute_extended_
7891 Qmouse_movement))) 7891 Qmouse_movement)))
7892 { 7892 {
7893 /* But first wait, and skip the message if there is input. */ 7893 /* But first wait, and skip the message if there is input. */
7894 if (!NILP (Fsit_for ((NUMBERP (Vsuggest_key_bindings) 7894 int delay_time;
7895 ? Vsuggest_key_bindings : make_number (2)), 7895 if (echo_area_glyphs != 0)
7896 Qnil, Qnil)) 7896 /* This command displayed something in the echo area;
7897 so wait a few seconds, then display our suggestion message. */
7898 delay_time = (NUMBERP (Vsuggest_key_bindings)
7899 ? XINT (Vsuggest_key_bindings) : 2);
7900 else
7901 /* This command left the echo area empty,
7902 so display our message immediately. */
7903 delay_time = 0;
7904
7905 if (!NILP (Fsit_for (make_number (delay_time), Qnil, Qnil))
7897 && ! CONSP (Vunread_command_events)) 7906 && ! CONSP (Vunread_command_events))
7898 { 7907 {
7899 Lisp_Object binding; 7908 Lisp_Object binding;