emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 0b7d6b0: Fix echo for "C-u"


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-25 0b7d6b0: Fix echo for "C-u"
Date: Sat, 12 Dec 2015 08:06:00 +0000

branch: emacs-25
commit 0b7d6b026eb2cd69a90a9af41a4fca24389c5e47
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix echo for "C-u"
    
    * src/keyboard.c (command_loop_1): Undo last change.  It caused
    duplicate echo of C-u.  (Bug#22107)
---
 src/keyboard.c |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/src/keyboard.c b/src/keyboard.c
index 928d849..02bc7d2 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1486,14 +1486,11 @@ command_loop_1 (void)
       if (!CONSP (last_command_event))
        kset_last_repeatable_command (current_kboard, Vreal_this_command);
 
-      /* Don't reset this_command_key_count if we've processed
-        prefix-arg.  */
-      if (NILP (call0 (Qinternal_echo_keystrokes_prefix)))
-       {
-         this_command_key_count = 0;
-         this_single_command_key_start = 0;
-       }
-      else if (current_kboard->immediate_echo)
+      this_command_key_count = 0;
+      this_single_command_key_start = 0;
+
+      if (current_kboard->immediate_echo
+         && !NILP (call0 (Qinternal_echo_keystrokes_prefix)))
        {
          current_kboard->immediate_echo = false;
          /* Refresh the echo message.  */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]