all messages for Emacs-related lists mirrored at yhetil.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 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.