GNU bug report logs -
#26061
26.0.50; cancel-change-group fails with "unrelated state" error if used after an undo
Previous Next
Full log
Message #16 received at 26061 <at> debbugs.gnu.org (full text, mbox):
Braun Gábor <braungb88 <at> gmail.com> writes:
> -------------------- File test.el ----------------------------------
> ;; -*- lexical-binding: t; -*-
> (defun test-fun ()
> "Test atomic change group, no visible effect."
> (interactive)
> (catch 'test
> (atomic-change-group
> (save-excursion
> (goto-char (point-min))
> (insert "!!! TEST: you shouldn't see this !!!")
> (throw 'test t)))))
>
> (global-set-key [(control c) ?a] #'test-fun)
> --------------------------------------------------------------------
>
> Start emacs by the command
>
> emacs -Q -l test.el
>
> Press the following keys: a C-_ C-c a
>
> A "!!! TEST: you shouldn't see this !!!" gets inserted at the top of
> buffer *scratch*, and the message "Undoing to some unrelated state"
> appears in the echo area.
I can reproduce this problem in Emacs 26.1, but it seems to be gone in
Emacs 27.1 (and 28), so I'm going to go ahead and guess that this has
been fixed in the years since this was reported, and I'm closing this
bug report. If this is still a problem in recent Emacs versions, please
respond to the debbugs address and we'll reopen.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 280 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.