unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#17236: undo-only hangs when nils double up
@ 2014-04-10 16:15 Barry OReilly
  2014-04-10 17:23 ` Andreas Schwab
  2014-04-10 20:30 ` Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: Barry OReilly @ 2014-04-10 16:15 UTC (permalink / raw)
  To: 17236

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?





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-12 19:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-10 16:15 bug#17236: undo-only hangs when nils double up Barry OReilly
2014-04-10 17:23 ` Andreas Schwab
2014-04-10 20:30 ` Stefan Monnier
2014-04-12 19:24   ` Barry OReilly

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