[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33341: 27.0.50; Undo log merging and change groups
From: |
Michael Heerdegen |
Subject: |
bug#33341: 27.0.50; Undo log merging and change groups |
Date: |
Thu, 26 Nov 2020 15:49:29 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
> > Hm... Well, after running this command, hitting "undo" removes all the
> > three lines, which is what I'd expect? Since you cancelled the change
> > group?
>
> AFAIU `cancel-change-group' itself should undo the change set, without
> the user invoking `undo'. See the implementation of
> `atomic-change-group' for a use of this feature.
BTW, coming back to my example:
#+begin_src emacs-lisp
(defun my-test-change-groups ()
(interactive)
(insert "0\n") ;; try to comment this line
(let ((g (prepare-change-group)))
(activate-change-group g)
(insert "b\n")
(insert "c\n")
(cancel-change-group g)))
#+end_src
if you comment the line including the `insert' call before the change
group is prepared the thing works as expected. So there is a problem
with this insertion (in the same command?) before preparing the group,
or this is actually not allowed but not documented accordingly.
Michael.
- bug#33341: 27.0.50; Undo log merging and change groups, Lars Ingebrigtsen, 2020/11/26
- bug#33341: 27.0.50; Undo log merging and change groups, Michael Heerdegen, 2020/11/26
- bug#33341: 27.0.50; Undo log merging and change groups,
Michael Heerdegen <=
- bug#33341: 27.0.50; Undo log merging and change groups, Michael Heerdegen, 2020/11/26
- bug#33341: 27.0.50; Undo log merging and change groups, Stefan Monnier, 2020/11/26
- bug#33341: 27.0.50; Undo log merging and change groups, Michael Heerdegen, 2020/11/26
- bug#33341: 27.0.50; Undo log merging and change groups, Stefan Monnier, 2020/11/27
- bug#33341: 27.0.50; Undo log merging and change groups, Michael Heerdegen, 2020/11/27