aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorDave Love2000-02-18 21:34:40 +0000
committerDave Love2000-02-18 21:34:40 +0000
commitf2647d044c32f446cf174e0bd3635f2da00d8a1c (patch)
tree027f78a2999b2f4cc3a1d6bdc395837907edc36e /src/keyboard.c
parentac1b1728b572f6abc021aa8bca734d2e91c4be96 (diff)
downloademacs-f2647d044c32f446cf174e0bd3635f2da00d8a1c.tar.gz
emacs-f2647d044c32f446cf174e0bd3635f2da00d8a1c.zip
Amend last change to check for echo-keystrokes being zero, not nil.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 996894bc72a..19f4ef0ea9a 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2151,7 +2151,8 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
2151 && !current_kboard->immediate_echo 2151 && !current_kboard->immediate_echo
2152 && this_command_key_count > 0 2152 && this_command_key_count > 0
2153 && ! noninteractive 2153 && ! noninteractive
2154 && !NILP (Vecho_keystrokes) 2154 && (FLOATP (Vecho_keystrokes) || INTEGERP (Vecho_keystrokes))
2155 && NILP (Fzerop (Vecho_keystrokes))
2155 && (/* No message. */ 2156 && (/* No message. */
2156 NILP (echo_area_buffer[0]) 2157 NILP (echo_area_buffer[0])
2157 /* Or empty message. */ 2158 /* Or empty message. */
@@ -2608,7 +2609,8 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
2608 before_command_echo_length = echo_length (); 2609 before_command_echo_length = echo_length ();
2609 2610
2610 /* Don't echo mouse motion events. */ 2611 /* Don't echo mouse motion events. */
2611 if (! NILP (Vecho_keystrokes) 2612 if ((FLOATP (Vecho_keystrokes) || INTEGERP (Vecho_keystrokes))
2613 && NILP (Fzerop (Vecho_keystrokes))
2612 && ! (EVENT_HAS_PARAMETERS (c) 2614 && ! (EVENT_HAS_PARAMETERS (c)
2613 && EQ (EVENT_HEAD_KIND (EVENT_HEAD (c)), Qmouse_movement))) 2615 && EQ (EVENT_HEAD_KIND (EVENT_HEAD (c)), Qmouse_movement)))
2614 { 2616 {
@@ -2678,7 +2680,8 @@ record_menu_key (c)
2678 before_command_echo_length = echo_length (); 2680 before_command_echo_length = echo_length ();
2679 2681
2680 /* Don't echo mouse motion events. */ 2682 /* Don't echo mouse motion events. */
2681 if (! NILP (Vecho_keystrokes)) 2683 if ((FLOATP (Vecho_keystrokes) || INTEGERP (Vecho_keystrokes))
2684 && NILP (Fzerop (Vecho_keystrokes)))
2682 { 2685 {
2683 echo_char (c); 2686 echo_char (c);
2684 2687
@@ -7458,7 +7461,9 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
7458 { 7461 {
7459 if (!NILP (prompt)) 7462 if (!NILP (prompt))
7460 echo_prompt (XSTRING (prompt)->data); 7463 echo_prompt (XSTRING (prompt)->data);
7461 else if (cursor_in_echo_area && !NILP (Vecho_keystrokes)) 7464 else if (cursor_in_echo_area
7465 && (FLOATP (Vecho_keystrokes) || INTEGERP (Vecho_keystrokes))
7466 && NILP (Fzerop (Vecho_keystrokes)))
7462 /* This doesn't put in a dash if the echo buffer is empty, so 7467 /* This doesn't put in a dash if the echo buffer is empty, so
7463 you don't always see a dash hanging out in the minibuffer. */ 7468 you don't always see a dash hanging out in the minibuffer. */
7464 echo_dash (); 7469 echo_dash ();
@@ -7604,7 +7609,8 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
7604 { 7609 {
7605 key = keybuf[t]; 7610 key = keybuf[t];
7606 add_command_key (key); 7611 add_command_key (key);
7607 if (!NILP (Vecho_keystrokes)) 7612 if ((FLOATP (Vecho_keystrokes) || INTEGERP (Vecho_keystrokes))
7613 && NILP (Fzerop (Vecho_keystrokes)))
7608 echo_char (key); 7614 echo_char (key);
7609 } 7615 }
7610 7616
@@ -8393,7 +8399,8 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
8393 Better ideas? */ 8399 Better ideas? */
8394 for (; t < mock_input; t++) 8400 for (; t < mock_input; t++)
8395 { 8401 {
8396 if (!NILP (Vecho_keystrokes)) 8402 if ((FLOATP (Vecho_keystrokes) || INTEGERP (Vecho_keystrokes))
8403 && NILP (Fzerop (Vecho_keystrokes)))
8397 echo_char (keybuf[t]); 8404 echo_char (keybuf[t]);
8398 add_command_key (keybuf[t]); 8405 add_command_key (keybuf[t]);
8399 } 8406 }
@@ -9939,7 +9946,8 @@ Emacs also does a garbage collection if that seems to be warranted.");
9939 XSETFASTINT (Vauto_save_timeout, 30); 9946 XSETFASTINT (Vauto_save_timeout, 30);
9940 9947
9941 DEFVAR_LISP ("echo-keystrokes", &Vecho_keystrokes, 9948 DEFVAR_LISP ("echo-keystrokes", &Vecho_keystrokes,
9942 "*Nonzero means echo unfinished commands after this many seconds of pause."); 9949 "*Nonzero means echo unfinished commands after this many seconds of pause.\n\
9950The value may be integer or floating point.");
9943 Vecho_keystrokes = make_number (1); 9951 Vecho_keystrokes = make_number (1);
9944 9952
9945 DEFVAR_INT ("polling-period", &polling_period, 9953 DEFVAR_INT ("polling-period", &polling_period,