* bug#26061: 26.0.50; cancel-change-group fails with "unrelated state" error if used after an undo
@ 2017-03-11 18:01 Andreas Politz
2019-11-21 9:53 ` bug#26061: Consider merging with 26287 and 34405 Braun Gábor
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Politz @ 2017-03-11 18:01 UTC (permalink / raw)
To: 26061
Save the following in some file foo.el:
#+BEGIN_SRC emacs-lisp
(defun bug ()
(interactive)
(catch 'done
(atomic-change-group
(insert "bug")
(throw 'done nil))))
(setq debug-on-error t)
(switch-to-buffer (get-buffer-create "*bug*"))
(setq unread-command-events
(list
;; insert abc
?a ?b ?c
;; undo once
?\C-/
;; call bug
?\M-x ?b ?u ?g ?\C-j))
#+END_SRC
, then start Emacs like this:
$ emacs -Q -l foo.el
Debugger entered--Lisp error: (error "Undoing to some unrelated state")
signal(error ("Undoing to some unrelated state"))
error("Undoing to some unrelated state")
cancel-change-group(((#<buffer *bug*> nil)))
--
-ap
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-11-21 11:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-11 18:01 bug#26061: 26.0.50; cancel-change-group fails with "unrelated state" error if used after an undo Andreas Politz
2019-11-21 9:53 ` bug#26061: Consider merging with 26287 and 34405 Braun Gábor
2019-11-21 11:47 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.