summaryrefslogtreecommitdiff
path: root/doc/lispref/text.texi
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-11-08 16:33:39 +1100
committerStefan Monnier <monnier@iro.umontreal.ca>2021-11-08 08:34:52 -0500
commit5861b8d027382ecbd4c0d3dffc283b8ac95b5692 (patch)
tree0cb5a7e25845a7f272f12f613028769e250a075f /doc/lispref/text.texi
parent4f365eec10ca110016ac5aef7f8952105f55fe7c (diff)
downloademacs-5861b8d027382ecbd4c0d3dffc283b8ac95b5692.tar.gz
* lisp/subr.el (with-undo-amalgamate): New macro
This allows commands to be made without adding undo-barriers, e.g. kmacro-exec-ring-item.
Diffstat (limited to 'doc/lispref/text.texi')
-rw-r--r--doc/lispref/text.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index fa1135b8026..937680c200d 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -1506,6 +1506,11 @@ continuing to undo.
This function does not bind @code{undo-in-progress}.
@end defun
+@defmac with-undo-amalgamate body@dots{}
+This macro removes all the undo boundaries inserted during the
+execution of @var{body} so that it can be undone as a single step.
+@end defmac
+
Some commands leave the region active after execution in such a way that
it interferes with selective undo of that command. To make @code{undo}
ignore the active region when invoked immediately after such a command,