From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64204: C/C++ local variables not syntax highlighted if they start with $ Date: Thu, 22 Jun 2023 14:18:37 +0800 Message-ID: <87h6r010le.fsf@yahoo.com> References: <87edm52fu1.fsf@yahoo.com> <83cz1o3xso.fsf@gnu.org> <87legc126a.fsf@yahoo.com> <837crw3up9.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35669"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: acm@muc.de, 64204@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 22 08:19: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 1qCDf7-00097f-5S for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jun 2023 08:19:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCDeq-0001VT-QF; Thu, 22 Jun 2023 02:19:04 -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 1qCDeo-0001Un-Lb for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 02:19:02 -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 1qCDeo-0000z6-DU for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 02:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCDen-0005AC-Uh for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 02:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jun 2023 06:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64204 X-GNU-PR-Package: emacs Original-Received: via spool by 64204-submit@debbugs.gnu.org id=B64204.168741473719838 (code B ref 64204); Thu, 22 Jun 2023 06:19:01 +0000 Original-Received: (at 64204) by debbugs.gnu.org; 22 Jun 2023 06:18:57 +0000 Original-Received: from localhost ([127.0.0.1]:34652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCDej-00059u-2J for submit@debbugs.gnu.org; Thu, 22 Jun 2023 02:18:57 -0400 Original-Received: from sonic313-10.consmr.mail.ne1.yahoo.com ([66.163.185.33]:42396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCDeh-00059c-98 for 64204@debbugs.gnu.org; Thu, 22 Jun 2023 02:18:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1687414729; bh=p9X7BQV1gipJppAUGmEu6k4+Uax/0VithWXHkfIttmQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=Fb1dZmqsvoOcmMXsI3wClVZIY4s+mcfRCGghirWGjvrBXENb27SU1ib0mFSMyfIgU2p2o/pWmhZ4IQAx+wcwQakKQ/iw1Y99W7Ah1slGBDQI83toeBcyFyXNtSAbZSZ78ag0vBUtdrQZ3kJMdao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MUTfNrCP7u15UbVodxeVUQP1mkQqMrQsE0Uc2br0QOUyNBQyoxtsZtgrwVJ0Mx0PNQS6Rq. OnbvjfqNeM0DCFfScZ_v8rcvASRPYZlzqNjrbh3VRemoB7rzAK0lO2NhZQsVeWh0uk3zJvuXIYIy EjPKncUHf4vVguF88vHyxh4q.UPDx9bMRicSMTlvnJzpBI938yUXu8Hs3s.AsMO12E4g5IxGwQOG m3OlxMTdKepCHZm.8he9sTTUFCaRiZNqM2FcBY9iiV1cOpnRsrhMiGFuPP.YZF9puD19sf8Sb0u3 aDsrx2X81kB.YuHaVRq5aYIgAt9VpabRu2fKdS0.yOnikjKN8Q6aQVXcQrGSPu5_NJ11u.4ZFvGE d8YfiaraoUNSyToO33vJXMOGFhAAhJThHm4lzPsHIy0wPYyxYPXrehYYbEbZShSNU2MrCZi5YWak bSp1peAsG8HngQNA6.HdJ_nrhBaFquvfNmf9DXGN7g X-Sonic-MF: X-Sonic-ID: 96c171c0-0bf9-4b99-a342-25d382376d2c Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Thu, 22 Jun 2023 06:18:49 +0000 Original-Received: by hermes--production-sg3-748897c457-rqcgt (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 738378e2ffd4794011c5fc96eca72724; Thu, 22 Jun 2023 06:18:43 +0000 (UTC) In-Reply-To: <837crw3up9.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Jun 2023 08:57:38 +0300") X-Mailer: WebService/1.1.21557 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:263861 Archived-At: Eli Zaretskii writes: > Sorry, I disagree, for the reasons I explained above. (I don't mind > this feature to be ON by default, though.) Previously, this syntax (_only_ the syntax where an identifier starts with $; CC Mode has always supported identifiers containing $, which are also non-standard) would not be fontified at all, or would be fontified randomly. Why would that be desirable, and how would it help anyone follow the Standard? My objection to adding unnecessary options to CC Mode is because, for some reason, these options end up requiring counter-intuitive steps to modify, and slow down CC Mode by a tiny (but not negligible) amount. For an example, see c-noise-macro-names or c-font-lock-extra-types, both of which can only be set as file-local variables or before C Mode is enabled.