unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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

* bug#26061: Consider merging with 26287 and 34405
  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 ` Braun Gábor
  2019-11-21 11:47   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Braun Gábor @ 2019-11-21  9:53 UTC (permalink / raw)
  To: 26061

This seems to be a candidate to merge with 26287 and 34405,
the latter two being already merged.

All three bugs have similar Lisp code
(catch ... (atomic-change-group ... (throw ...)))
producing an "unrelated state" error after undo.

Best wishes,

	Gábor








^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#26061: Consider merging with 26287 and 34405
  2019-11-21  9:53 ` bug#26061: Consider merging with 26287 and 34405 Braun Gábor
@ 2019-11-21 11:47   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2019-11-21 11:47 UTC (permalink / raw)
  To: Braun Gábor; +Cc: 26061

Braun Gábor <braungb88@gmail.com> writes:

> This seems to be a candidate to merge with 26287 and 34405,
> the latter two being already merged.
>
> All three bugs have similar Lisp code
> (catch ... (atomic-change-group ... (throw ...)))
> producing an "unrelated state" error after undo.

Yup; I've merged the bugs now.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ 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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).