From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#61514: 30.0.50; sadistically long xml line hangs emacs Date: Tue, 21 Feb 2023 15:44:57 +0000 Message-ID: <6abb5de6884bd36cb594@heytings.org> References: <87lel0c65v.fsf@everybody.org> <838rgvymcd.fsf@gnu.org> <831qmkwmux.fsf@gnu.org> <83cz64v3v7.fsf@gnu.org> <83r0ujte97.fsf@gnu.org> <6abb5de688808f8d363d@heytings.org> <83bklntbeb.fsf@gnu.org> <6abb5de688545b31428e@heytings.org> <837cwbt6p7.fsf@gnu.org> <6abb5de688b004f6f267@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7955"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mah@everybody.org, 61514@debbugs.gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 21 16:45:16 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pUUpQ-0001tP-Ag for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Feb 2023 16:45:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUUpJ-0005nQ-8L; Tue, 21 Feb 2023 10:45:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUUpF-0005mN-Ou for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2023 10:45:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUUpD-00031o-6t for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2023 10:45:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUUpD-0005tb-1O for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2023 10:45:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Feb 2023 15:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61514 X-GNU-PR-Package: emacs Original-Received: via spool by 61514-submit@debbugs.gnu.org id=B61514.167699430022638 (code B ref 61514); Tue, 21 Feb 2023 15:45:02 +0000 Original-Received: (at 61514) by debbugs.gnu.org; 21 Feb 2023 15:45:00 +0000 Original-Received: from localhost ([127.0.0.1]:57082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUUpA-0005t4-DJ for submit@debbugs.gnu.org; Tue, 21 Feb 2023 10:45:00 -0500 Original-Received: from heytings.org ([95.142.160.155]:38672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUUp8-0005sw-TO for 61514@debbugs.gnu.org; Tue, 21 Feb 2023 10:44:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1676994297; bh=tjWfKEII0WnnRqOx17P3nlYghrqSYZkJgMHCE9lPEqI=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=yvQf8M63c3BJU7DEzFywTecgHOsdp8k7fB6L7AMNpDpqKgYK95/ujS+mHqB8GOeXs i4cTmWG1rAQL809L7/oMFcwjnGGm/cSTH5JB8pzYwpv8ba9ah3JBq4RAUm/cKMRVEe ShYhvzElbgOZwEhhdXHwAQXaWVPH7+nPkjvNlv496vTnqwrgXW6W8qYsZZbEUeOGbd 4u3DaZw/BxvEMUDTMHulGf4bAB+QWOq75k9z24f9HdC2T6LVwE2mK0YoK5GMGP0oMR mc4aFIbpGo1n3q0K12sK5m3V5ILCEVckJypcG2Pp2Yj1r/K6Q0usG+DZVSMJWqOK5J X7CY2xKRRzpqg== In-Reply-To: <6abb5de688b004f6f267@heytings.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256290 Archived-At: >>> See my reply to Stefan. With a 'with-restriction' of 10000 chars, the >>> file opens in 1.6 seconds. I'm not sure it would make sense to add a >>> variable/defcustom there instead of the (admittedly somewhat >>> arbitrary) constant 10000, which should be large enough in practice. >> >> OK, then let's go with that version. > > OK, thanks. Stefan, do you have any further comments/objections on that > version? > By the way, I noted that a variant of the regexp still produces stack overflows: (with-current-buffer (get-buffer-create "*bug*") (erase-buffer) (insert (make-string 266665 ?x) "=") (goto-char (point-min)) (looking-at "[^y]*=*")) 266665 overflows, 266664 does not. Is that expected?