From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#24271: 25.1; font-lock problem of c++-mode Date: Sun, 17 Nov 2019 08:08:29 +0100 Message-ID: <874kz3dloy.fsf@gnus.org> References: <7756A5F1-342F-4F55-8D6B-1A41B528DE5A@gmail.com> <83twegc4ie.fsf@gnu.org> <1645ABE9-D61A-4DDE-B4D6-94A29A2CC2AA@gmail.com> <02148DC1-20D2-41B8-BA43-CFBE6A07C3F6@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="247432"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 24271@debbugs.gnu.org To: Jiajian Huang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 17 08:09: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.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iWEgK-0012FM-Qz for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Nov 2019 08:09:12 +0100 Original-Received: from localhost ([::1]:52318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWEgJ-000378-3d for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Nov 2019 02:09:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47924) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWEgD-00032l-5Z for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2019 02:09:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWEgC-0005ug-1D for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2019 02:09:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59493) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iWEgA-0005u6-AL; Sun, 17 Nov 2019 02:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iWEgA-0002dK-2k; Sun, 17 Nov 2019 02:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sun, 17 Nov 2019 07:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24271 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 24271-submit@debbugs.gnu.org id=B24271.157397452410082 (code B ref 24271); Sun, 17 Nov 2019 07:09:02 +0000 Original-Received: (at 24271) by debbugs.gnu.org; 17 Nov 2019 07:08:44 +0000 Original-Received: from localhost ([127.0.0.1]:40078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWEfq-0002cR-91 for submit@debbugs.gnu.org; Sun, 17 Nov 2019 02:08:42 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:43476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWEfp-0002cC-1q for 24271@debbugs.gnu.org; Sun, 17 Nov 2019 02:08:41 -0500 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iWEfe-0004Ik-Ec; Sun, 17 Nov 2019 08:08:32 +0100 In-Reply-To: <02148DC1-20D2-41B8-BA43-CFBE6A07C3F6@gmail.com> (Jiajian Huang's message of "Sat, 20 Aug 2016 15:57:02 +0800") 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:171763 Archived-At: Jiajian Huang writes: > This is a more serious example. As you can see, I normally input such > a short line =E2=80=9Cusing std::string=E2=80=9D, the color have change 6= times ! I > don=E2=80=99s think any of them is a =E2=80=9Cvalid=E2=80=9D C++ program = except the last one. > > I=E2=80=99ve not seen any other major mode has such a =E2=80=9Cfeature=E2= =80=9D. This is my > first time get into c++-mode. Because of this mechanism, the current > input area keep =E2=80=9Cflashing=E2=80=9D too much when keep typing fast= within a > buffer full of words even under such a light color theme. I feel that > it=E2=80=99s so different from other major mode(python-mode etc.) soon as= I > switch to c++-mode. Maybe it=E2=80=99s not a bug, but I don=E2=80=99t thi= nk it=E2=80=99s a > good feature. I tried the recipe in Emacs 27, and it seems like c++ mode is much calmer these days. There are one three changes I see to the fontification while typing that line, and none of them are very attention-grabbing (i.e., none of them flash red bold at me), so I'm going to go ahead and guess that this has been tweaked in the years since this was reported, and I'm closing this bug report. Please reopen if it's still an issue. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no