From aaf86f30f709b22e9bae8cdb23ec89342dcaa55f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 3 Mar 2017 16:19:28 +0200 Subject: [PATCH] Avoid duplicating characters recorded in macros * src/keyboard.c (record_char): Don't store in macro definitions characters that came from executing a macro. (Bug#25860) --- src/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keyboard.c b/src/keyboard.c index 0245dfa9759..ec4dee01720 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -3245,7 +3245,7 @@ record_char (Lisp_Object c) } } } - else + else if (NILP (Vexecuting_kbd_macro)) store_kbd_macro_char (c); /* recent_keys should not include events from keyboard macros. */ -- 2.39.5