aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2019-03-20 11:21:54 +0200
committerEli Zaretskii2019-03-20 11:21:54 +0200
commitf13d97b4de02586cce49909aa2f3f51fcb5daa5f (patch)
treea467b0e89bd82d81a1ece2f94b69872b6312c28e /doc
parent047c1b19353ff58d8cd45935c7b44c911b70e312 (diff)
downloademacs-f13d97b4de02586cce49909aa2f3f51fcb5daa5f.tar.gz
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')
-rw-r--r--doc/lispref/commands.texi8
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}),
2880as the events will already have been added once as they were read for 2880as the events will already have been added once as they were read for
2881the first time. An element of the form @w{@code{(t . @var{event})}} 2881the first time. An element of the form @w{@code{(t . @var{event})}}
2882forces @var{event} to be added to the current command's key sequence. 2882forces @var{event} to be added to the current command's key sequence.
2883
2884@cindex not recording input events
2885@cindex input events, prevent recording
2886Elements read from this list are normally recorded by the
2887record-keeping features (@pxref{Recording Input}) and while defining a
2888keyboard macro (@pxref{Keyboard Macros}). However, an element of the
2889form @w{@code{(no-record . @var{event})}} causes @var{event} to be
2890processed normally without recording it.
2883@end defvar 2891@end defvar
2884 2892
2885@defun listify-key-sequence key 2893@defun listify-key-sequence key