* bug#35191: 27.0.50; Error signaled by undo--wrap-and-run-primitive-undo
@ 2019-04-08 12:57 Stefan Monnier
2019-04-10 0:41 ` Noam Postavsky
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2019-04-08 12:57 UTC (permalink / raw)
To: 35191
[-- Attachment #1: Type: text/plain, Size: 1540 bytes --]
Package: Emacs
Version: 27.0.50
Save the file below and then open it as follows:
% emacs -Q ..../zones.el
C-M-f C-M-b ;; Move before first form
C-M-SPC M-; ;; Comment out first form
C-x u ;; Undo last change
When I do that, I see an error message in the echo area that says:
Changes to be undone by function different than announced
If I redo this after enabling the debugger on error, I get the following
backtrace:
Debugger entered--Lisp error: (error "Changes to be undone by function different than an...")
signal(error ("Changes to be undone by function different than an..."))
error("Changes to be undone by function different than an...")
primitive-undo(1 ((apply -4 44189 44226 undo--wrap-and-run-primitive-undo 44189 44226 ((44189 . 44192) (#(" " 0 1 (fontified t)) . -44223) (#<marker (moves after insertion) in no buffer> . 1) (44222 . 44223) 44189)) nil (apply 3 44189 44223 undo--wrap-and-run-primitive-undo 44189 44223 ((#("\n" 0 1 (face font-lock-comment-face fontified t)) . 44222) (44223 . 44224) (#(";; " 0 3 (face font-lock-comment-delimiter-face fontified t)) . 44189))) nil (apply -4 44189 44226 undo--wrap-and-run-primitive-undo 44189 44226 ((44189 . 44192) (#(" " 0 1 (fontified t)) . -44223) (#<marker (moves after insertion) in no buffer> . 1) (44222 . 44223) 44189)) (t 23723 17250 171044 280000)))
undo-more(1)
undo(nil)
funcall-interactively(undo nil)
call-interactively(undo nil nil)
command-execute(undo)
[-- Attachment #2: zones.el --]
[-- Type: application/emacs-lisp, Size: 138263 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#35191: 27.0.50; Error signaled by undo--wrap-and-run-primitive-undo
2019-04-08 12:57 bug#35191: 27.0.50; Error signaled by undo--wrap-and-run-primitive-undo Stefan Monnier
@ 2019-04-10 0:41 ` Noam Postavsky
2021-02-02 14:43 ` bug#35191: 27.0.50; undo of comment-region signals error (when comment-combine-change-calls=t) Lars Ingebrigtsen
0 siblings, 1 reply; 3+ messages in thread
From: Noam Postavsky @ 2019-04-10 0:41 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 35191
retitle 35191 27.0.50; undo of comment-region signals error (when comment-combine-change-calls=t)
tags 35191 + confirmed
quit
Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
> Save the file below and then open it as follows:
It's enough to use a single line
foo ;; bar
in emacs-lisp-mode. And the problem only happens with
comment-combine-change-calls set to t (the default).
> % emacs -Q ..../zones.el
> C-M-f C-M-b ;; Move before first form
> C-M-SPC M-; ;; Comment out first form
> C-x u ;; Undo last change
>
> When I do that, I see an error message in the echo area that says:
>
> Changes to be undone by function different than announced
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#35191: 27.0.50; undo of comment-region signals error (when comment-combine-change-calls=t)
2019-04-10 0:41 ` Noam Postavsky
@ 2021-02-02 14:43 ` Lars Ingebrigtsen
0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-02-02 14:43 UTC (permalink / raw)
To: Noam Postavsky; +Cc: 35191, Stefan Monnier
Noam Postavsky <npostavs@gmail.com> writes:
>> Save the file below and then open it as follows:
>
> It's enough to use a single line
>
> foo ;; bar
>
> in emacs-lisp-mode. And the problem only happens with
> comment-combine-change-calls set to t (the default).
>
>> % emacs -Q ..../zones.el
>> C-M-f C-M-b ;; Move before first form
>> C-M-SPC M-; ;; Comment out first form
>> C-x u ;; Undo last change
>>
>> When I do that, I see an error message in the echo area that says:
>>
>> Changes to be undone by function different than announced
I'm unable to reproduce this on the trunk (or in Emacs 27.1) -- because
>> C-M-SPC M-; ;; Comment out first form
doesn't comment anything out (it just moves point to the comment), and
then there's nothing to undo. Is there something missing in the recipe?
--
(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:[~2021-02-02 14:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-08 12:57 bug#35191: 27.0.50; Error signaled by undo--wrap-and-run-primitive-undo Stefan Monnier
2019-04-10 0:41 ` Noam Postavsky
2021-02-02 14:43 ` bug#35191: 27.0.50; undo of comment-region signals error (when comment-combine-change-calls=t) 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).