aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorChong Yidong2006-10-10 01:20:20 +0000
committerChong Yidong2006-10-10 01:20:20 +0000
commit2bcac7667a8d99b3ff897eaa0efe11b79b074c0c (patch)
treec7c192ea949955fe1b977fbc185d77addac3182a /src/keyboard.c
parente29d96b65f897a3cef09053c6491116de25cade5 (diff)
downloademacs-2bcac7667a8d99b3ff897eaa0efe11b79b074c0c.tar.gz
emacs-2bcac7667a8d99b3ff897eaa0efe11b79b074c0c.zip
* dispnew.c (sit_for): Sit forever if TIMEOUT is t.
* keyboard.c (command_loop_1): Handle non-number values of `minibuffer-message-timeout'. (Fexecute_extended_command): Fix typo. * minibuf.c (temp_echo_area_glyphs): Sit for `minibuffer-message-timeout' seconds.
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 8518bcb98c1..eb46f99d668 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);
@@ -9982,7 +9984,7 @@ give to the command you invoke, if it asks for an argument. */)
9982 if (NILP (echo_area_buffer[0])) 9984 if (NILP (echo_area_buffer[0]))
9983 waited = sit_for (make_number (0), 0, 2); 9985 waited = sit_for (make_number (0), 0, 2);
9984 else if (NUMBERP (Vsuggest_key_bindings)) 9986 else if (NUMBERP (Vsuggest_key_bindings))
9985 waited = sit_for (Vminibuffer_message_timeout, 0, 2); 9987 waited = sit_for (Vsuggest_key_bindings, 0, 2);
9986 else 9988 else
9987 waited = sit_for (make_number (2), 0, 2); 9989 waited = sit_for (make_number (2), 0, 2);
9988 9990