unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26287: 26.0.50; Using atomic-change-group right after an undo does not work
@ 2017-03-28 20:11 Andreas Politz
  0 siblings, 0 replies; only message in thread
From: Andreas Politz @ 2017-03-28 20:11 UTC (permalink / raw)
  To: 26287


I seems that atomic-change-group has problems in case its used while in
the middle of an undo sequence.
 
Have this function defined:

(defun undo-bug ()
  (interactive)
  (catch 'done
    (atomic-change-group
      (insert "a b c")
      (throw 'done nil))))

$ emacs -Q

C-x b xxx RET
xxx
C-/
M-x undo-bug RET

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 xxx> nil)))
  ...





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-28 20:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-28 20:11 bug#26287: 26.0.50; Using atomic-change-group right after an undo does not work Andreas Politz

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).