summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-01-22 21:07:35 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-01-22 21:07:41 +0100
commitba25a82855a2c03c25fec83f3056c166b692e94f (patch)
tree9b6b9963b5be5d0fb6c00916d7c66c0932d50949 /doc
parentb99ec5d5b11154bafb193ceaaac6976daafe3f82 (diff)
downloademacs-ba25a82855a2c03c25fec83f3056c166b692e94f.tar.gz
Mention undo-amalgamate-change-group in the lispref manual
* doc/lispref/text.texi (Atomic Changes): Mention undo-amalgamate-change-group (bug#42303).
Diffstat (limited to 'doc')
-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 0b567d82c61..35bc6f9f161 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -5610,6 +5610,11 @@ This function cancels and undoes all the changes in the change group
specified by @var{handle}.
@end defun
+@defun undo-amalgamate-change-group
+Amalgamate changes in change-group since @var{handle}. I.e., remove
+all undo boundaries between the state of @var{handle} and now.
+@end defun
+
Your code should use @code{unwind-protect} to make sure the group is
always finished. The call to @code{activate-change-group} should be
inside the @code{unwind-protect}, in case the user types @kbd{C-g}