diff options
| author | Lars Ingebrigtsen | 2021-01-22 21:07:35 +0100 |
|---|---|---|
| committer | Eli Zaretskii | 2021-01-23 10:57:54 +0200 |
| commit | c8fa056a50586429be37fc5bfde8226c4b6cefa2 (patch) | |
| tree | b2165e8752559fdb57e49c5509002829acd60f27 | |
| parent | 3f610177adb844248fe37f52eb713d462e833a62 (diff) | |
| download | emacs-c8fa056a50586429be37fc5bfde8226c4b6cefa2.tar.gz emacs-c8fa056a50586429be37fc5bfde8226c4b6cefa2.zip | |
Mention undo-amalgamate-change-group in the lispref manual
* doc/lispref/text.texi (Atomic Changes): Mention
undo-amalgamate-change-group (bug#42303).
(cherry picked from commit ba25a82855a2c03c25fec83f3056c166b692e94f)
| -rw-r--r-- | doc/lispref/text.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 06975f76706..5eead42031d 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -5561,6 +5561,11 @@ This function cancels and undoes all the changes in the change group | |||
| 5561 | specified by @var{handle}. | 5561 | specified by @var{handle}. |
| 5562 | @end defun | 5562 | @end defun |
| 5563 | 5563 | ||
| 5564 | @defun undo-amalgamate-change-group | ||
| 5565 | Amalgamate changes in change-group since @var{handle}. I.e., remove | ||
| 5566 | all undo boundaries between the state of @var{handle} and now. | ||
| 5567 | @end defun | ||
| 5568 | |||
| 5564 | Your code should use @code{unwind-protect} to make sure the group is | 5569 | Your code should use @code{unwind-protect} to make sure the group is |
| 5565 | always finished. The call to @code{activate-change-group} should be | 5570 | always finished. The call to @code{activate-change-group} should be |
| 5566 | inside the @code{unwind-protect}, in case the user types @kbd{C-g} | 5571 | inside the @code{unwind-protect}, in case the user types @kbd{C-g} |