From 8ea231fcaccf51358be485271c44ec9aeda337e1 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 24 Dec 1994 01:53:16 +0000 Subject: [PATCH] (read_char): Don't echo keys when echo_keystrokes is 0. --- src/keyboard.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/keyboard.c b/src/keyboard.c index 2819328c4e3..2db086c0d10 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -1815,8 +1815,9 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) reread_first: /* Don't echo mouse motion events. */ - if (! (EVENT_HAS_PARAMETERS (c) - && EQ (EVENT_HEAD_KIND (EVENT_HEAD (c)), Qmouse_movement))) + if (echo_keystrokes + && ! (EVENT_HAS_PARAMETERS (c) + && EQ (EVENT_HEAD_KIND (EVENT_HEAD (c)), Qmouse_movement))) { echo_char (c); if (! NILP (also_record)) -- 2.39.5