diff options
| author | Stefan Monnier | 2016-03-14 20:52:34 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2016-03-14 20:52:34 -0400 |
| commit | e6776f8362bbf6466c671cc8d381ba7da9e95301 (patch) | |
| tree | 137edb0b63d6aa2a60d7603a0299945d0ebb6648 | |
| parent | 8475f3da531955cf17fecbb78719ff7f3ffe8a18 (diff) | |
| download | emacs-e6776f8362bbf6466c671cc8d381ba7da9e95301.tar.gz emacs-e6776f8362bbf6466c671cc8d381ba7da9e95301.zip | |
* src/keyboard.c (echo_keystrokes_p): Don't test cursor_in_echo_area
(read_key_sequence): Test it here, as before.
(bug#22825).
| -rw-r--r-- | src/keyboard.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 29d6d6778f4..53030e22c75 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -430,10 +430,9 @@ kset_system_key_syms (struct kboard *kb, Lisp_Object val) | |||
| 430 | static bool | 430 | static bool |
| 431 | echo_keystrokes_p (void) | 431 | echo_keystrokes_p (void) |
| 432 | { | 432 | { |
| 433 | return (!cursor_in_echo_area) | 433 | return (FLOATP (Vecho_keystrokes) ? XFLOAT_DATA (Vecho_keystrokes) > 0.0 |
| 434 | && (FLOATP (Vecho_keystrokes) ? XFLOAT_DATA (Vecho_keystrokes) > 0.0 | 434 | : INTEGERP (Vecho_keystrokes) ? XINT (Vecho_keystrokes) > 0 |
| 435 | : INTEGERP (Vecho_keystrokes) ? XINT (Vecho_keystrokes) > 0 | 435 | : false); |
| 436 | : false); | ||
| 437 | } | 436 | } |
| 438 | 437 | ||
| 439 | /* Add C to the echo string, without echoing it immediately. C can be | 438 | /* Add C to the echo string, without echoing it immediately. C can be |
| @@ -8902,7 +8901,9 @@ read_key_sequence (Lisp_Object *keybuf, int bufsize, Lisp_Object prompt, | |||
| 8902 | if (!echo_keystrokes_p ()) | 8901 | if (!echo_keystrokes_p ()) |
| 8903 | current_kboard->immediate_echo = false; | 8902 | current_kboard->immediate_echo = false; |
| 8904 | } | 8903 | } |
| 8905 | else if (echo_keystrokes_p ()) | 8904 | else if (cursor_in_echo_area /* FIXME: Not sure why we test this here, |
| 8905 | maybe we should just drop this test. */ | ||
| 8906 | && echo_keystrokes_p ()) | ||
| 8906 | /* This doesn't put in a dash if the echo buffer is empty, so | 8907 | /* This doesn't put in a dash if the echo buffer is empty, so |
| 8907 | you don't always see a dash hanging out in the minibuffer. */ | 8908 | you don't always see a dash hanging out in the minibuffer. */ |
| 8908 | echo_dash (); | 8909 | echo_dash (); |