From: Andreas Politz <politza@hochschule-trier.de>
To: 26061@debbugs.gnu.org
Subject: bug#26061: 26.0.50; cancel-change-group fails with "unrelated state" error if used after an undo
Date: Sat, 11 Mar 2017 19:01:28 +0100 [thread overview]
Message-ID: <87wpbvwv47.fsf@luca> (raw)
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
next reply other threads:[~2017-03-11 18:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-11 18:01 Andreas Politz [this message]
2019-11-21 9:53 ` bug#26061: Consider merging with 26287 and 34405 Braun Gábor
2019-11-21 11:47 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wpbvwv47.fsf@luca \
--to=politza@hochschule-trier.de \
--cc=26061@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).