From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Vincent Lefevre Newsgroups: gmane.emacs.bugs Subject: bug#33887: 26.1; Emacs hangs for several seconds when going to the end of an XML file in nXML mode Date: Wed, 22 May 2019 17:44:11 +0200 Message-ID: <20190522154411.GA15113@zira.vinc17.org> References: <87r28vd2d5.fsf@gmail.com> <20190519001704.GA5467@zira.vinc17.org> <87k1embaqx.fsf@gmail.com> <87h89qb722.fsf@gmail.com> <87o93wam5s.fsf@gmail.com> <20190521010600.GA23463@zira.vinc17.org> <87imu49ene.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="95435"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.11.4+219 (8f739fbe) vl-117499 (2019-05-20) Cc: Noam Postavsky , 33887@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 22 17:47:52 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTTT6-000Ofl-0Z for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 May 2019 17:47:52 +0200 Original-Received: from localhost ([127.0.0.1]:46369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTTT4-0004qB-TC for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 May 2019 11:47:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTTQN-0002pY-Ee for bug-gnu-emacs@gnu.org; Wed, 22 May 2019 11:45:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hTTQM-0001Cq-D8 for bug-gnu-emacs@gnu.org; Wed, 22 May 2019 11:45:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57423) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hTTQM-0001BU-8a for bug-gnu-emacs@gnu.org; Wed, 22 May 2019 11:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hTTQM-0007S4-4Z for bug-gnu-emacs@gnu.org; Wed, 22 May 2019 11:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincent Lefevre Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 May 2019 15:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33887 X-GNU-PR-Package: emacs Original-Received: via spool by 33887-submit@debbugs.gnu.org id=B33887.155853985728574 (code B ref 33887); Wed, 22 May 2019 15:45:02 +0000 Original-Received: (at 33887) by debbugs.gnu.org; 22 May 2019 15:44:17 +0000 Original-Received: from localhost ([127.0.0.1]:42734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hTTPd-0007Qo-EQ for submit@debbugs.gnu.org; Wed, 22 May 2019 11:44:17 -0400 Original-Received: from joooj.vinc17.net ([155.133.131.76]:38556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hTTPa-0007Qd-JL for 33887@debbugs.gnu.org; Wed, 22 May 2019 11:44:15 -0400 Original-Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id F294F4FF; Wed, 22 May 2019 17:44:11 +0200 (CEST) Original-Received: by zira.vinc17.org (Postfix, from userid 1000) id AA6CFC2062C; Wed, 22 May 2019 17:44:11 +0200 (CEST) Content-Disposition: inline In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:159652 Archived-At: On 2019-05-22 09:58:54 -0400, Stefan Monnier wrote: > > shows the same highlighting. This seems directly due to "we're now > > careful to leave alone any pair of quotes that doesn't hold a < or > > > char". So uh, Stefan, how was that supposed to work exactly? > > Remember: when I wrote this, we only supported "..." and not '...'. I'm not sure what you mean by that, but the single quotes are not the only issue. In general, you don't know the quoting rules in a text node used by the underlying language (if any), even if you have only double quotes. For instance, a text node may contain C or shell code, which can be: "a string with \"double quotes\"..." And one does not expect this to be interpreted as two pairs of double-quoted text ("a string with \" and "..."). In short, you should leave text nodes with no specific highlighting, as this was the case with Emacs 25. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)