aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 21904bf9c28..2acf6aaa3cc 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1603,17 +1603,15 @@ command_loop_1 ()
1603 1603
1604 if (minibuf_level 1604 if (minibuf_level
1605 && !NILP (echo_area_buffer[0]) 1605 && !NILP (echo_area_buffer[0])
1606 && EQ (minibuf_window, echo_area_window)) 1606 && EQ (minibuf_window, echo_area_window)
1607 && NUMBERP (Vminibuffer_message_timeout))
1607 { 1608 {
1608 /* Bind inhibit-quit to t so that C-g gets read in 1609 /* Bind inhibit-quit to t so that C-g gets read in
1609 rather than quitting back to the minibuffer. */ 1610 rather than quitting back to the minibuffer. */
1610 int count = SPECPDL_INDEX (); 1611 int count = SPECPDL_INDEX ();
1611 specbind (Qinhibit_quit, Qt); 1612 specbind (Qinhibit_quit, Qt);
1612 1613
1613 if (NUMBERP (Vminibuffer_message_timeout)) 1614 sit_for (Vminibuffer_message_timeout, 0, 2);
1614 sit_for (Vminibuffer_message_timeout, 0, 2);
1615 else
1616 sit_for (Qt, 0, 2);
1617 1615
1618 /* Clear the echo area. */ 1616 /* Clear the echo area. */
1619 message2 (0, 0, 0); 1617 message2 (0, 0, 0);