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#25706: 26.0.50; Slow C file fontification Date: Tue, 1 Dec 2020 10:07:08 +0000 Message-ID: References: <55C404DC-1C29-449F-9A49-B20EDFFCFCEA@acm.org> <86EC566E-0CE6-4D98-9025-0C0551CE1546@acm.org> <87213375-c8d7-d88d-64e3-36a62489ef52@gmx.at> 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="23185"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Lars Ingebrigtsen , 25706@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 01 11:08:11 2020 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 1kk2Zv-0005vt-75 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 11:08:11 +0100 Original-Received: from localhost ([::1]:58868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kk2Zt-0002lI-EB for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 05:08:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kk2Zm-0002kt-30 for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 05:08:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46355) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kk2Zl-0002QC-RZ; Tue, 01 Dec 2020 05:08:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kk2Zl-0007Yu-Km; Tue, 01 Dec 2020 05:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 01 Dec 2020 10:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25706 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 25706-submit@debbugs.gnu.org id=B25706.160681723829013 (code B ref 25706); Tue, 01 Dec 2020 10:08:01 +0000 Original-Received: (at 25706) by debbugs.gnu.org; 1 Dec 2020 10:07:18 +0000 Original-Received: from localhost ([127.0.0.1]:57901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kk2Z3-0007Xt-QD for submit@debbugs.gnu.org; Tue, 01 Dec 2020 05:07:18 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:47061 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1kk2Z1-0007Xf-U1 for 25706@debbugs.gnu.org; Tue, 01 Dec 2020 05:07:17 -0500 Original-Received: (qmail 72715 invoked by uid 3782); 1 Dec 2020 10:07:09 -0000 Original-Received: from acm.muc.de (p4fe15c10.dip0.t-ipconnect.de [79.225.92.16]) by localhost.muc.de (tmda-ofmipd) with ESMTP; Tue, 01 Dec 2020 11:07:08 +0100 Original-Received: (qmail 5284 invoked by uid 1000); 1 Dec 2020 10:07:08 -0000 Content-Disposition: inline In-Reply-To: <87213375-c8d7-d88d-64e3-36a62489ef52@gmx.at> X-Delivery-Agent: TMDA/1.1.12 (Macallan) 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" Xref: news.gmane.io gmane.emacs.bugs:194723 Archived-At: Hello, Martin. On Tue, Dec 01, 2020 at 10:44:31 +0100, martin rudalics wrote: > > There are 342 occurrences of '\\\\([^?]' in CC Mode. Most of these can > > surely be replaced by "\\(?:", but not all, by a long way. This change > > will be fun. > Years ago I wrote the attached that might help you in this regard (load > it and do 'turn-on-regexp-lock-mode'). If you move point before the "(" > of a "\\(" it should give you the appropriate nesting. Thanks! I'll have a look at it. > martin -- Alan Mackenzie (Nuremberg, Germany).