[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Support for undo-amalgamate in a version of the atomic-change-group
From: |
Stefan Monnier |
Subject: |
Re: Support for undo-amalgamate in a version of the atomic-change-group macro (with patch) |
Date: |
Mon, 01 Nov 2021 22:14:07 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> In these situations collapsing undo data was necessary.
> - Calling kmacro-exec-ring-item (based on this answer [0])
Aha, yes, this one makes a lot of sense.
> - Calling some evil functions for e.g.
>
> (defun evil-paste-and-indent-after ()
> (interactive)
> (with-undo-collapse
> (evil-paste-after 1)
> (evil-indent (evil-get-marker ?\[)
> (evil-get-marker ?\]))))
Yes, there are indeed a few commands that explicitly call
`undo-boundary`. These are rather rare (and you can often argue that
they're bugs, where the undo-boundary should only be inserted if the
command is used interactively).
Stefan
- Re: Support for undo-amalgamate in a version of the atomic-change-group macro (with patch), Stefan Monnier, 2021/11/01
- Re: Support for undo-amalgamate in a version of the atomic-change-group macro (with patch), Campbell Barton, 2021/11/01
- Re: Support for undo-amalgamate in a version of the atomic-change-group macro (with patch),
Stefan Monnier <=
- Re: Support for undo-amalgamate in a version of the atomic-change-group macro (with patch), Campbell Barton, 2021/11/01
- Re: Support for undo-amalgamate in a version of the atomic-change-group macro (with patch), Campbell Barton, 2021/11/07
- Re: Support for undo-amalgamate in a version of the atomic-change-group macro (with patch), Stefan Monnier, 2021/11/07
- Re: Support for undo-amalgamate in a version of the atomic-change-group macro (with patch), Campbell Barton, 2021/11/07
- Re: Support for undo-amalgamate in a version of the atomic-change-group macro (with patch), Campbell Barton, 2021/11/07
- Re: Support for undo-amalgamate in a version of the atomic-change-group macro (with patch), Stefan Monnier, 2021/11/07
- Re: Support for undo-amalgamate in a version of the atomic-change-group macro (with patch), Lars Ingebrigtsen, 2021/11/07
- Re: Support for undo-amalgamate in a version of the atomic-change-group macro (with patch), Campbell Barton, 2021/11/08
- Re: Support for undo-amalgamate in a version of the atomic-change-group macro (with patch), Stefan Monnier, 2021/11/08