From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry OReilly Newsgroups: gmane.emacs.bugs Subject: bug#17236: undo-only hangs when nils double up Date: Thu, 10 Apr 2014 12:15:53 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1397147483 32620 80.91.229.3 (10 Apr 2014 16:31:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Apr 2014 16:31:23 +0000 (UTC) To: 17236@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 10 18:31:16 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WYHsh-00038f-1I for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Apr 2014 18:31:15 +0200 Original-Received: from localhost ([::1]:53206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYHsg-0002N7-Bw for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Apr 2014 12:31:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYHey-0006DP-1b for bug-gnu-emacs@gnu.org; Thu, 10 Apr 2014 12:17:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYHew-00049I-VD for bug-gnu-emacs@gnu.org; Thu, 10 Apr 2014 12:17:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYHew-00049D-Rh for bug-gnu-emacs@gnu.org; Thu, 10 Apr 2014 12:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WYHew-0000r3-4V for bug-gnu-emacs@gnu.org; Thu, 10 Apr 2014 12:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Barry OReilly Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Apr 2014 16:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17236 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: emacs bugs Original-Received: via spool by submit@debbugs.gnu.org id=B.13971465683193 (code B ref -1); Thu, 10 Apr 2014 16:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Apr 2014 16:16:08 +0000 Original-Received: from localhost ([127.0.0.1]:39939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WYHe3-0000pP-1A for submit@debbugs.gnu.org; Thu, 10 Apr 2014 12:16:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38706) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WYHdy-0000ok-UA for submit@debbugs.gnu.org; Thu, 10 Apr 2014 12:16:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYHds-0003U3-5u for submit@debbugs.gnu.org; Thu, 10 Apr 2014 12:15:57 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYHds-0003Ts-2u for submit@debbugs.gnu.org; Thu, 10 Apr 2014 12:15:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYHdq-0003cE-S7 for bug-gnu-emacs@gnu.org; Thu, 10 Apr 2014 12:15:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYHdq-0003Ss-8j for bug-gnu-emacs@gnu.org; Thu, 10 Apr 2014 12:15:54 -0400 Original-Received: from mail-ob0-x22c.google.com ([2607:f8b0:4003:c01::22c]:64718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYHdq-0003Sl-3k for bug-gnu-emacs@gnu.org; Thu, 10 Apr 2014 12:15:54 -0400 Original-Received: by mail-ob0-f172.google.com with SMTP id wm4so4645482obc.17 for ; Thu, 10 Apr 2014 09:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=nE0DJRcZSjO/s9lMfh8za23UoVpP7DWOPEuYBpgEUUw=; b=CG91p5pB1oLbEjcTk9QgS72Ylw3boIbmc38uKGhqtoz7RLfu7fJeKCokH8pCv3Gf1T Y4r/yPdqYRzy9A9tq/WhFsbWfMaSTEWoyZRF5BZZ/chhClE3r88MuYy0hCEXr+DlIu+H 8tNUJsbVGS5F9vACuW/RAAAdpGbdyc+pYeI1vxWm3ppewADr4FXSNtvNaB/6xv7ow8u5 GC6NJm4R5Qes1X9tG9g+To0zPxWxwTM2AwRuzWfCnMI3mU9185J7IrrWmWs2B+ab3YBI QcBWqLHt7/XAENZ5daFlWmnOrDjHdmVbj6a+FH7AXRarnFbvfMDB/26lceRGOmVIzDdn N6Hg== X-Received: by 10.182.142.37 with SMTP id rt5mr1270193obb.76.1397146553454; Thu, 10 Apr 2014 09:15:53 -0700 (PDT) Original-Received: by 10.76.6.44 with HTTP; Thu, 10 Apr 2014 09:15:53 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:87927 Archived-At: 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?