From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.bugs Subject: bug#16449: 24.3.50; emacs hangs while deleting comment in xml file with flyspell-mode on Date: Wed, 15 Jan 2014 18:58:47 +0400 Message-ID: <52D6A227.6010209@yandex.ru> 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: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389797954 4572 80.91.229.3 (15 Jan 2014 14:59:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jan 2014 14:59:14 +0000 (UTC) Cc: Levin Du To: 16449@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 15 15:59:20 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 1W3Rw7-00089r-8m for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jan 2014 15:59:19 +0100 Original-Received: from localhost ([::1]:55333 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Rw6-0005aU-V5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jan 2014 09:59:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Rvx-0005Yh-Ir for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 09:59:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3Rvq-0006Sd-Kn for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 09:59:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Rvq-0006SZ-Ef for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 09:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W3Rvp-0003YL-Ps for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 09:59:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jan 2014 14:59:01 +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: Original-Received: via spool by 16449-submit@debbugs.gnu.org id=B16449.138979793613644 (code B ref 16449); Wed, 15 Jan 2014 14:59:01 +0000 Original-Received: (at 16449) by debbugs.gnu.org; 15 Jan 2014 14:58:56 +0000 Original-Received: from localhost ([127.0.0.1]:52163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3Rvj-0003Y0-PH for submit@debbugs.gnu.org; Wed, 15 Jan 2014 09:58:56 -0500 Original-Received: from forward8l.mail.yandex.net ([84.201.143.141]:34993) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3Rve-0003Xm-Gi for 16449@debbugs.gnu.org; Wed, 15 Jan 2014 09:58:51 -0500 Original-Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [37.140.190.27]) by forward8l.mail.yandex.net (Yandex) with ESMTP id 94C541A40509; Wed, 15 Jan 2014 18:58:48 +0400 (MSK) Original-Received: from smtp2o.mail.yandex.net (localhost [127.0.0.1]) by smtp2o.mail.yandex.net (Yandex) with ESMTP id 3F3C736A0B12; Wed, 15 Jan 2014 18:58:48 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id WiAMIhRoRN-wl9qLDGY; Wed, 15 Jan 2014 18:58:47 +0400 (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (Client certificate not present) X-Yandex-Uniq: 063360ac-58f9-48cb-ae3c-128c7fb4bc2c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1389797927; bh=JHX3Vujk81kXzL0c/RJlrS5tbmbF6yMtr9ZHXoajisc=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=VngXnEdcw5pdPD0UsKhPZKbW2CBGGM+3djsamJ2qNwLQ05B6INUfJaAh2i4zgCtay oSMexxZ42h56Hkb3O9GzHfxt1VaNiiDeM7Lh4nCk4FdIOuefHLeig0ZEPEq/8x3pMv x/exddFUDR/LMMRMv6nLvrY9YKH8eH1Ax6HD4gK4= Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <871u0agcji.fsf@DuJingwu.i-did-not-set--mail-host-address--so-tickle-me> 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:83532 Archived-At: On 01/15/2014 07:16 AM, Levin Du wrote: > 1. Starting from `emacs -Q' [...skip...] Reproduced. Consider simpler example with the following XML: Visit this file in nxml-mode and try to eval: (goto-char (nxml-token-after)) from the beginning - you should advance token by token after each evaluation, up to the end of buffer. Next, remove comment, i.e. change the XML above to: Text Then try to advance from the beginning again. In my test, nxml-token-after stops at '<' of '' and never continues. Due to this, there is an endless loop in nxml-forward-single-balanced-item (lisp/nxml/nxml-mode.el): 1627 (defun nxml-forward-single-balanced-item () 1628 (condition-case err 1629 (goto-char (let ((end (nxml-token-after))) 1630 (save-excursion 1631 (while (eq xmltok-type 'space) ; this is an 1632 (goto-char end) ; endless 1633 (setq end (nxml-token-after))) ; loop BTW, I have no ideas why C-g doesn't help. Dmitry