summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarco Wahl <marcowahlsoft@gmail.com>2021-01-29 08:01:12 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-01-29 08:01:12 +0100
commitd4e9d191aeba9076db06857a90649f6fcddc7f3b (patch)
tree6a95d2ac53d149920ce4e2a900d42829074d3a29 /doc
parent1275dc4711af77c9c223063dcd149d782d497463 (diff)
downloademacs-d4e9d191aeba9076db06857a90649f6fcddc7f3b.tar.gz
Add a command for redisplay during keyboard macros
* doc/emacs/kmacro.texi (Basic Keyboard Macro): Document it (bug#39252). * lisp/kmacro.el (kdb-macro-redisplay): New function. (kmacro-keymap): Bind it.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/kmacro.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/emacs/kmacro.texi b/doc/emacs/kmacro.texi
index adb2ab8d561..e713c6ef8c0 100644
--- a/doc/emacs/kmacro.texi
+++ b/doc/emacs/kmacro.texi
@@ -179,6 +179,14 @@ itself counts as the first repetition, since it is executed as you
define it, so @kbd{C-u 4 C-x )} executes the macro immediately 3
additional times.
+@findex kdb-macro-redisplay
+@kindex C-x C-k Q
+ While executing a long-running keyboard macro, it can sometimes be
+useful to trigger a redisplay (to show how far we've gotten). The
+@kbd{C-x C-k Q} can be used for this. As a not very useful example,
+@kbd{C-x ( M-f C-x C-k Q C-x )} will create a macro that will
+redisplay once per iteration when saying @kbd{C-u 42 C-x e}.
+
@node Keyboard Macro Ring
@section The Keyboard Macro Ring