From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Levin Du Newsgroups: gmane.emacs.bugs Subject: bug#16449: 24.3.50; emacs hangs while deleting comment in xml file with flyspell-mode on Date: Fri, 17 Jan 2014 17:29:39 +0800 Message-ID: References: <871u0agcji.fsf@DuJingwu.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c30d0660349404f0272ef3 X-Trace: ger.gmane.org 1389951008 17054 80.91.229.3 (17 Jan 2014 09:30:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jan 2014 09:30:08 +0000 (UTC) To: 16449@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 17 10:30:14 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 1W45kj-00050o-8U for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jan 2014 10:30:13 +0100 Original-Received: from localhost ([::1]:37048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W45ki-0005VR-S9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jan 2014 04:30:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W45ke-0005Tu-Oh for bug-gnu-emacs@gnu.org; Fri, 17 Jan 2014 04:30:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W45kY-00084T-Ty for bug-gnu-emacs@gnu.org; Fri, 17 Jan 2014 04:30:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W45kY-00084I-Qn for bug-gnu-emacs@gnu.org; Fri, 17 Jan 2014 04:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W45kY-0004ar-Ek for bug-gnu-emacs@gnu.org; Fri, 17 Jan 2014 04:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Levin Du Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Jan 2014 09:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138995098717602 (code B ref -1); Fri, 17 Jan 2014 09:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Jan 2014 09:29:47 +0000 Original-Received: from localhost ([127.0.0.1]:54426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W45kJ-0004Zq-6u for submit@debbugs.gnu.org; Fri, 17 Jan 2014 04:29:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49866) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W45kG-0004Ze-PD for submit@debbugs.gnu.org; Fri, 17 Jan 2014 04:29:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W45kF-0007wC-CA for submit@debbugs.gnu.org; Fri, 17 Jan 2014 04:29:44 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W45kF-0007w8-8h for submit@debbugs.gnu.org; Fri, 17 Jan 2014 04:29:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W45kE-0005Mq-8C for bug-gnu-emacs@gnu.org; Fri, 17 Jan 2014 04:29:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W45kD-0007vq-F2 for bug-gnu-emacs@gnu.org; Fri, 17 Jan 2014 04:29:42 -0500 Original-Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:55135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W45kD-0007ve-7A for bug-gnu-emacs@gnu.org; Fri, 17 Jan 2014 04:29:41 -0500 Original-Received: by mail-lb0-f179.google.com with SMTP id l4so1164848lbv.10 for ; Fri, 17 Jan 2014 01:29:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5xg+Bo/aNuMZUYWdvdkNBzckLdn1UK5CoalQlI1Noxc=; b=C7PPbotkKVC2Ac4wxL6fd9TkbccOSJ6V7dglw+tHAJI9G/Cml2Y2u38x1fIGVWImS5 37+5Lhr/MMK57yKplBe3EkeLeaC1u+uR9u3zf/GTm3JzkvprNHJky+53zfOsUqAPyaHY UUd4Fdhp0kYH0SXow7J2C4Of+8CIVFMvkcg8qxAR/FyFx/tXqVsuXcaX4eexej7JhC+r M+leu5veD/OuOebQsGji0TwRiUuZatBauwR2MQvM4mBa6Xz5MgPSW4+MXbxjQ45TdY24 iOYZ0hHy2sgzbLuobGmjOdV/YEGs1UaCKGh62avQK5HEwaEnomrDoV7wp1VGOXf+xVGA Z3rg== X-Received: by 10.112.234.194 with SMTP id ug2mr28530lbc.86.1389950979288; Fri, 17 Jan 2014 01:29:39 -0800 (PST) Original-Received: by 10.152.162.84 with HTTP; Fri, 17 Jan 2014 01:29:39 -0800 (PST) In-Reply-To: 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:83635 Archived-At: --001a11c30d0660349404f0272ef3 Content-Type: text/plain; charset=ISO-8859-1 I trace down to the while loop in nxml-forward-single-balanced-item: (defun nxml-forward-single-balanced-item () (condition-case err (goto-char (let ((end (nxml-token-after))) (save-excursion (while (eq xmltok-type 'space) (goto-char end) (setq end (nxml-token-after))) (cond ((/= (point) xmltok-start) In my test xml file, when the last comment char is deleted, `end' will be 65, then (nxml-token-after) also returns 65 , so this is a endless loop. --001a11c30d0660349404f0272ef3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I trace down to the while loop in nxml-forward-single= -balanced-item:

(defun nxml-forward-single-balance= d-item ()
=A0 (condition-case err
=A0 =A0 =A0 (goto-cha= r (let ((end (nxml-token-after)))
=A0 (save-excursi= on
=A0 =A0 (= while (eq xmltok-type 'space)
=A0 =A0 =A0 (goto-char end)
=A0 =A0 =A0 (setq= end (nxml-token-after)))
=A0 =A0 (cond ((/=3D (point) xmltok-start)

In my test xml file, when the last comment char is deleted, `end'= ; will be 65, then (nxml-token-after) also returns 65 =A0, so this is a end= less loop.=A0



--001a11c30d0660349404f0272ef3--