From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#58558: 29.0.50; re-search-forward is slow in some buffers Date: Wed, 12 Apr 2023 15:59:42 +0000 Message-ID: References: <83ttxol6f5.fsf@gnu.org> <87h6tolybs.fsf@localhost> <87zg7e8xnt.fsf@localhost> <83ttxmab7x.fsf@gnu.org> <87sfd5b4oy.fsf@localhost> <83fs956ulv.fsf@gnu.org> <83cz496s7l.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28018"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58558@debbugs.gnu.org, larsi@gnus.org, yantar92@posteo.net, Stefan Monnier To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 12 18:00:54 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 1pmctx-00073q-Ry for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Apr 2023 18:00:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmctI-0005nl-9z; Wed, 12 Apr 2023 12:00:12 -0400 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 1pmct8-0005ms-SP for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 12:00:06 -0400 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 1pmct8-0007Qp-Ib for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 12:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmct8-000644-Cv for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 12:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Apr 2023 16:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58558 X-GNU-PR-Package: emacs Original-Received: via spool by 58558-submit@debbugs.gnu.org id=B58558.168131519223257 (code B ref 58558); Wed, 12 Apr 2023 16:00:02 +0000 Original-Received: (at 58558) by debbugs.gnu.org; 12 Apr 2023 15:59:52 +0000 Original-Received: from localhost ([127.0.0.1]:41115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmcsx-000633-NX for submit@debbugs.gnu.org; Wed, 12 Apr 2023 11:59:52 -0400 Original-Received: from mx3.muc.de ([193.149.48.5]:51174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmcsv-00062l-PU for 58558@debbugs.gnu.org; Wed, 12 Apr 2023 11:59:50 -0400 Original-Received: (qmail 68249 invoked by uid 3782); 12 Apr 2023 17:59:43 +0200 Original-Received: from acm.muc.de (pd953ab03.dip0.t-ipconnect.de [217.83.171.3]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 12 Apr 2023 17:59:42 +0200 Original-Received: (qmail 22126 invoked by uid 1000); 12 Apr 2023 15:59:42 -0000 Content-Disposition: inline In-Reply-To: <83cz496s7l.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:259777 Archived-At: Hello, Eli. On Wed, Apr 12, 2023 at 18:22:22 +0300, Eli Zaretskii wrote: > > From: Stefan Monnier > > Cc: acm@muc.de, yantar92@posteo.net, larsi@gnus.org, 58558@debbugs.gnu.org > > Date: Wed, 12 Apr 2023 10:38:50 -0400 > > > Also, that code was there in Emacs 28 as well, so how come it suddenly > > > has this effect now? > > The effect of the code depends on whether the buffer that's current when > > `cc-defs.el` is loaded has set `parse-sexp-lookup-properties` > > buffer-locally or not. > > I don't have Emacs-28 at hand, but the value of > > `parse-sexp-lookup-properties` in *scratch* is (buffer-local) t in > > Emacs-29 and (global) nil in Emacs-27. > Ah, okay. So in Emacs 29 we started setting this variable locally in > some buffers? Do you happen to know where's the change which caused > that, and why was it done? I suspect this commit as the cause: commit 6ccc4b6bc8a14daca6b3e3250574752c90c1eb9b Author: Noam Postavsky Date: Fri May 6 18:31:00 2022 +0200 Handle elisp #-syntax better in Emacs Lisp mode * elisp-mode.el (elisp-mode-syntax-propertize): New function. (emacs-lisp-mode): Set it as syntax-propertize-function (bug#15998). Lisp Interaction Mode is derived from Emacs Lisp Mode. Whenever there is a non-nil syntax-propertize-function, run-mode-hooks sets parse-sexp-lookup-properties to t. This is probably harmless in *scratch*. -- Alan Mackenzie (Nuremberg, Germany).