• Eli Zaretskii's avatar
    Fix defining keyboard macros in CUA mode · f13d97b4
    Eli Zaretskii authored
    * lisp/emulation/cua-base.el (cua--prefix-override-replay):
    Push the key to replace wrapped in '(no-record . KEY)', so
    that it doesn't get recorded more than once.  (Bug#34901)
    
    * src/keyboard.c (read_char): Handle the '(no-record . KEY)'
    event by substituting KEY for it.
    (syms_of_keyboard) <no-record>: New DEFSYM.
    <unread-command-events>: Update the doc string.
    
    * doc/lispref/commands.texi (Event Input Misc): Document the
    '(no-record . EVENT)' form.
    f13d97b4
keyboard.c 369 KB