* src/keyboard.c (cmd_error): If a command causes a minibuffer-quit
condition, record its key in a keyboard macro (bug#48603).
Vexecuting_kbd_macro = Qnil;
executing_kbd_macro = Qnil;
}
+ else if (!NILP (KVAR (current_kboard, defining_kbd_macro)))
+ /* An `M-x' command that signals a `minibuffer-quit' condition
+ that's part of a kbd macro. */
+ finalize_kbd_macro_chars ();
specbind (Qstandard_output, Qt);
specbind (Qstandard_input, Qt);