aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 786b3d9b556..61539a384fd 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1546,15 +1546,17 @@ command_loop_1 ()
1546 1546
1547 if (minibuf_level 1547 if (minibuf_level
1548 && !NILP (echo_area_buffer[0]) 1548 && !NILP (echo_area_buffer[0])
1549 && EQ (minibuf_window, echo_area_window) 1549 && EQ (minibuf_window, echo_area_window))
1550 && NUMBERP (Vminibuffer_message_timeout))
1551 { 1550 {
1552 /* Bind inhibit-quit to t so that C-g gets read in 1551 /* Bind inhibit-quit to t so that C-g gets read in
1553 rather than quitting back to the minibuffer. */ 1552 rather than quitting back to the minibuffer. */
1554 int count = SPECPDL_INDEX (); 1553 int count = SPECPDL_INDEX ();
1555 specbind (Qinhibit_quit, Qt); 1554 specbind (Qinhibit_quit, Qt);
1556 1555
1557 sit_for (Vminibuffer_message_timeout, 0, 2); 1556 if (NUMBERP (Vminibuffer_message_timeout))
1557 sit_for (Vminibuffer_message_timeout, 0, 2);
1558 else
1559 sit_for (Qt, 0, 2);
1558 1560
1559 /* Clear the echo area. */ 1561 /* Clear the echo area. */
1560 message2 (0, 0, 0); 1562 message2 (0, 0, 0);
@@ -9981,7 +9983,7 @@ give to the command you invoke, if it asks for an argument. */)
9981 if (NILP (echo_area_buffer[0])) 9983 if (NILP (echo_area_buffer[0]))
9982 waited = sit_for (make_number (0), 0, 2); 9984 waited = sit_for (make_number (0), 0, 2);
9983 else if (NUMBERP (Vsuggest_key_bindings)) 9985 else if (NUMBERP (Vsuggest_key_bindings))
9984 waited = sit_for (Vminibuffer_message_timeout, 0, 2); 9986 waited = sit_for (Vsuggest_key_bindings, 0, 2);
9985 else 9987 else
9986 waited = sit_for (make_number (2), 0, 2); 9988 waited = sit_for (make_number (2), 0, 2);
9987 9989