Fix regression with 'recent-keys' and keyboard macros
* src/keyboard.c (record_char): Don't record in 'recent_keys' events that come from executing keyboard macros. (Bug#22674)
This commit is contained in:
parent
903603f8cd
commit
d9ea795035
1 changed files with 27 additions and 23 deletions
|
@ -3220,6 +3220,9 @@ record_char (Lisp_Object c)
|
||||||
else
|
else
|
||||||
store_kbd_macro_char (c);
|
store_kbd_macro_char (c);
|
||||||
|
|
||||||
|
/* recent_keys should not include events from keyboard macros. */
|
||||||
|
if (NILP (Vexecuting_kbd_macro))
|
||||||
|
{
|
||||||
if (!recorded)
|
if (!recorded)
|
||||||
{
|
{
|
||||||
total_keys += total_keys < NUM_RECENT_KEYS;
|
total_keys += total_keys < NUM_RECENT_KEYS;
|
||||||
|
@ -3247,6 +3250,7 @@ record_char (Lisp_Object c)
|
||||||
}
|
}
|
||||||
|
|
||||||
num_nonmacro_input_events++;
|
num_nonmacro_input_events++;
|
||||||
|
}
|
||||||
|
|
||||||
/* Write c to the dribble file. If c is a lispy event, write
|
/* Write c to the dribble file. If c is a lispy event, write
|
||||||
the event's symbol to the dribble file, in <brackets>. Bleaugh.
|
the event's symbol to the dribble file, in <brackets>. Bleaugh.
|
||||||
|
|
Loading…
Add table
Reference in a new issue