diff options
author | Eli Zaretskii <eliz@gnu.org> | 2019-03-20 11:21:54 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-03-20 11:21:54 +0200 |
commit | f13d97b4de02586cce49909aa2f3f51fcb5daa5f (patch) | |
tree | a467b0e89bd82d81a1ece2f94b69872b6312c28e /doc/lispref/commands.texi | |
parent | 047c1b19353ff58d8cd45935c7b44c911b70e312 (diff) | |
download | emacs-f13d97b4de02586cce49909aa2f3f51fcb5daa5f.tar.gz emacs-f13d97b4de02586cce49909aa2f3f51fcb5daa5f.tar.bz2 emacs-f13d97b4de02586cce49909aa2f3f51fcb5daa5f.zip |
Fix defining keyboard macros in CUA mode
* 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.
Diffstat (limited to 'doc/lispref/commands.texi')
-rw-r--r-- | doc/lispref/commands.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi index 1eb580e1e0f..cd44c1c87ef 100644 --- a/doc/lispref/commands.texi +++ b/doc/lispref/commands.texi @@ -2880,6 +2880,14 @@ command's key sequence (as returned by, e.g., @code{this-command-keys}), as the events will already have been added once as they were read for the first time. An element of the form @w{@code{(t . @var{event})}} forces @var{event} to be added to the current command's key sequence. + +@cindex not recording input events +@cindex input events, prevent recording +Elements read from this list are normally recorded by the +record-keeping features (@pxref{Recording Input}) and while defining a +keyboard macro (@pxref{Keyboard Macros}). However, an element of the +form @w{@code{(no-record . @var{event})}} causes @var{event} to be +processed normally without recording it. @end defvar @defun listify-key-sequence key |