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: Fri, 17 May 2019 23:36:02 +0200 Message-ID: <20190517213602.GA11777@zira.vinc17.org> References: <87ftujuvkd.fsf@zira.vinc17.org> <878sv7ff6j.fsf@gmail.com> <87pnoiegsh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Q68bSM7Ycu6FN28Q" Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="92547"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.11.4+211 (79563636) vl-117499 (2019-05-13) Cc: 33887@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 17 23:37:13 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 1hRkXQ-000Nuc-QX for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 May 2019 23:37:13 +0200 Original-Received: from localhost ([127.0.0.1]:54003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRkXP-0001S8-Ll for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 May 2019 17:37:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRkXH-0001Qg-1k for bug-gnu-emacs@gnu.org; Fri, 17 May 2019 17:37:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRkXF-00071T-U9 for bug-gnu-emacs@gnu.org; Fri, 17 May 2019 17:37:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45595) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRkXF-00071L-Q3 for bug-gnu-emacs@gnu.org; Fri, 17 May 2019 17:37:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hRkXF-0007xH-LK for bug-gnu-emacs@gnu.org; Fri, 17 May 2019 17:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincent Lefevre Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 May 2019 21:37:01 +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.155812897030518 (code B ref 33887); Fri, 17 May 2019 21:37:01 +0000 Original-Received: (at 33887) by debbugs.gnu.org; 17 May 2019 21:36:10 +0000 Original-Received: from localhost ([127.0.0.1]:59139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRkWP-0007w8-1X for submit@debbugs.gnu.org; Fri, 17 May 2019 17:36:10 -0400 Original-Received: from joooj.vinc17.net ([155.133.131.76]:35808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRkWM-0007vz-Im for 33887@debbugs.gnu.org; Fri, 17 May 2019 17:36:07 -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 339352B9; Fri, 17 May 2019 23:36:03 +0200 (CEST) Original-Received: by zira.vinc17.org (Postfix, from userid 1000) id A4C08C20780; Fri, 17 May 2019 23:36:02 +0200 (CEST) Content-Disposition: inline In-Reply-To: <87pnoiegsh.fsf@gmail.com> 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:159473 Archived-At: --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 2019-05-16 08:15:58 -0400, Noam Postavsky wrote: > The corrected patch would be as follows: [...] I've tried the combination of ca14dd1d4628094dd33d5d94694dcf5f29e843b8 7dab3ee7ab54b3c2e7bc24170376054786c01d6f and this patch against Debian's current source package. Emacs no longer hangs, but I get incorrect highlighting, for instance on the following XML file. "a' Highlighting starts to be wrong at the single-quote character. I've attached a screenshot obtained with the -Q option. Did I miss anything? -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) --Q68bSM7Ycu6FN28Q Content-Type: image/png Content-Disposition: attachment; filename="nxml.png" Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAALsAAABzCAIAAABPSeTkAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAADoAAAA 7wC+k1D+AAAAB3RJTUUH4wUSASAOHQqwegAAABBjYU52AAADhQAABRAAAAAOAAAAMEESk4sA AAAGYktHRAD/AP8A/6C9p5MAABNcSURBVHja7V1pVFRHFi66gWbfZA80CC6IyiIgCGiQxagg iyCLC24oCMqmDCAgiKBj1JhB3JVxQZTEZdw4Y+ZE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