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 18:31:09 +0000 Message-ID: References: <87h6ttkz6n.fsf@localhost> <838rf5qkpt.fsf@gnu.org> <87lej0zv92.fsf@localhost> <83ttxol6f5.fsf@gnu.org> <87h6tolybs.fsf@localhost> <87zg7e8xnt.fsf@localhost> <83ttxmab7x.fsf@gnu.org> <87sfd5b4oy.fsf@localhost> 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="23371"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58558@debbugs.gnu.org, larsi@gnus.org, Ihor Radchenko , Eli Zaretskii To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 12 20:32:21 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 1pmfGW-0005vy-UK for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Apr 2023 20:32:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmfGH-0004gS-M6; Wed, 12 Apr 2023 14:32:05 -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 1pmfGF-0004g9-8y for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 14:32:04 -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 1pmfGF-0007KP-08 for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 14:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmfGE-0004f4-BS for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 14:32: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 18:32: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.168132428117868 (code B ref 58558); Wed, 12 Apr 2023 18:32:02 +0000 Original-Received: (at 58558) by debbugs.gnu.org; 12 Apr 2023 18:31:21 +0000 Original-Received: from localhost ([127.0.0.1]:41777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmfFZ-0004e6-C1 for submit@debbugs.gnu.org; Wed, 12 Apr 2023 14:31:21 -0400 Original-Received: from mx3.muc.de ([193.149.48.5]:55758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmfFU-0004do-8v for 58558@debbugs.gnu.org; Wed, 12 Apr 2023 14:31:20 -0400 Original-Received: (qmail 62184 invoked by uid 3782); 12 Apr 2023 20:31:10 +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 20:31:09 +0200 Original-Received: (qmail 23505 invoked by uid 1000); 12 Apr 2023 18:31:09 -0000 Content-Disposition: inline In-Reply-To: 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:259796 Archived-At: Hello, Stefan. On Wed, Apr 12, 2023 at 10:06:03 -0400, Stefan Monnier wrote: > > 1. emacs -Q > > 2. M-: (require 'cc-langs) > > 3. C-x b asd > > 4. M-: parse-sexp-lookup-properties => t > > On Emacs 28, (4) yields nil. > I suspect that the patch below might fix the immediate problem. > Of course, setting `parse-sexp-lookup-properties` should not have such > a major performance impact, so maybe we should keep digging into > the problem. Thanks! That's a nasty little bug for somebody who hasn't seen it before. I don't the Elisp manual is all that explicit about what happens in such cases. Just as a matter of interest, have you searched cc-defs.el for any other places the same bug might occur? If not, I will. I suggest I apply your patch now-ish. > Stefan [ .... ] -- Alan Mackenzie (Nuremberg, Germany).