GNU bug report logs - #17236
undo-only hangs when nils double up

Previous Next

Package: emacs;

Reported by: Barry OReilly <gundaetiapo <at> gmail.com>

Date: Thu, 10 Apr 2014 16:17:01 UTC

Severity: normal

Done: Barry OReilly <gundaetiapo <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17236 in the body.
You can then email your comments to 17236 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17236; Package emacs. (Thu, 10 Apr 2014 16:17:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Barry OReilly <gundaetiapo <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 10 Apr 2014 16:17:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Barry OReilly <gundaetiapo <at> gmail.com>
To: emacs bugs <bug-gnu-emacs <at> gnu.org>
Subject: undo-only hangs when nils double up
Date: Thu, 10 Apr 2014 12:15:53 -0400
When there are consecutive nils in buffer-undo-list, undo-only can
hang. For example, if buffer-undo-list begins with (nil nil ...), then
the first undo-only succeeds, changes nothing, and inserts an identity
mapping into undo-equiv-table. The second undo-only hangs because the
identity mapping causes an infinite recursive lookup in
undo-equiv-table.

Perhaps the bug is in the Emacs package (Evil in this case) that
doubles up the nils. I ask here because the undo code already seems to
try to account for these to some extent. eg there are a few of these
in the undo function:

  (while (eq (car list) nil)
         (setq list (cdr list)))

Is this an Emacs bug or an Evil bug?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17236; Package emacs. (Thu, 10 Apr 2014 17:24:02 GMT) Full text and rfc822 format available.

Message #8 received at 17236 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Barry OReilly <gundaetiapo <at> gmail.com>
Cc: 17236 <at> debbugs.gnu.org
Subject: Re: bug#17236: undo-only hangs when nils double up
Date: Thu, 10 Apr 2014 19:23:10 +0200
Barry OReilly <gundaetiapo <at> gmail.com> writes:

> When there are consecutive nils in buffer-undo-list, undo-only can
> hang.

undo-boundary never creates such an entry.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17236; Package emacs. (Thu, 10 Apr 2014 20:31:02 GMT) Full text and rfc822 format available.

Message #11 received at 17236 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Barry OReilly <gundaetiapo <at> gmail.com>
Cc: 17236 <at> debbugs.gnu.org
Subject: Re: bug#17236: undo-only hangs when nils double up
Date: Thu, 10 Apr 2014 16:30:21 -0400
> Is this an Emacs bug or an Evil bug?

Putting a double nil in the undo-list is an error, so Evil is to blame.
But that doesn't excuse the inf-loop.  We should check with `eq' that we
don't add an identity mapping to undo-equiv-table.


        Stefan




Reply sent to Barry OReilly <gundaetiapo <at> gmail.com>:
You have taken responsibility. (Sat, 12 Apr 2014 19:26:01 GMT) Full text and rfc822 format available.

Notification sent to Barry OReilly <gundaetiapo <at> gmail.com>:
bug acknowledged by developer. (Sat, 12 Apr 2014 19:26:03 GMT) Full text and rfc822 format available.

Message #16 received at 17236-done <at> debbugs.gnu.org (full text, mbox):

From: Barry OReilly <gundaetiapo <at> gmail.com>
Cc: 17236-done <at> debbugs.gnu.org
Subject: Re: bug#17236: undo-only hangs when nils double up
Date: Sat, 12 Apr 2014 15:24:59 -0400
[Message part 1 (text/plain, inline)]
Rev 116951. The Evil bug was also reported and fixed.
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 11 May 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 362 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.