From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: cc-mode fontification feels random Date: Wed, 9 Jun 2021 23:17:26 +0300 Message-ID: References: <83lf7mhl3n.fsf@gnu.org> <73ff18bf-66dc-7d7a-a0db-8edc2cdceba8@gmx.at> <83o8cge4lg.fsf@gnu.org> <62e438b5-d27f-1d3c-69c6-11fe29a76d74@dancol.org> <83fsxsdxhu.fsf@gnu.org> <83pmwudgw3.fsf@gnu.org> <179f21d7780.2816.cc5b3318d7e9908e2c46732289705cb0@dancol.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15912"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 Cc: rudalics@gmx.at, emacs-devel@gnu.org, monnier@iro.umontreal.ca, rms@gnu.org To: Daniel Colascione , Eli Zaretskii , Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 09 22:18:10 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lr4eQ-00040j-1M for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Jun 2021 22:18:10 +0200 Original-Received: from localhost ([::1]:33474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lr4eP-0005gv-3o for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Jun 2021 16:18:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lr4dp-0004dX-SG for emacs-devel@gnu.org; Wed, 09 Jun 2021 16:17:33 -0400 Original-Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:36809) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lr4do-00025q-1g; Wed, 09 Jun 2021 16:17:33 -0400 Original-Received: by mail-wr1-x434.google.com with SMTP id e11so16656486wrg.3; Wed, 09 Jun 2021 13:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=JX3gvAX+nF6/G8UY6s+ZzpLKCv/QSj6PiIZRvl21dZA=; b=H6DPoLtvJOw2ShY9JecD2IMMYsNmw72IkjJRmdu3dSDxmHsceIrAzWF1baarHU3tfA 0beQyuYbbthZ1peR9rHjwShhCpF+dam7mfHmOmY2bw31tdzvhhxu1Tbbbdn/jhIu2WXX 95Pl82UsnFSlH3N2bW+klJnYA5I/MaWx73KegwQE1zlxGqdD9n2pc56w96TAGuTOoTSx y+5Mbr1TT7Hlq4IEJoYaK7yGo/ZMaZw3zXR/OAb1MOgEi99wiTpVc6S9NWtvOawcL/qI M3Ln/1ncYrm3ydZx02fqx1WeTC1MbxJMVomlmdiIQ3Lc8HzqfCv6JOqpSgToh2Zy0QVu 2Z5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JX3gvAX+nF6/G8UY6s+ZzpLKCv/QSj6PiIZRvl21dZA=; b=LLG8eCkVmd2nn/4g1Rzah4ikzyTbGUmUUDClvOxt4URbr8MlTgiHFBZilXYXGMzPE2 iT4DbEWt5IVR9oWZ4rwMAaHQY/mHaeWIx2VkV3/P0BQRx5Bar1FCpznn0WJowH/KJGxP Kg7CmH1JvxONm8nHm7l/M0t4F3eDKxsAzXz80oMzCoegKGS2Roxbc015Zzv6H4BkLkK1 sNYQjqfg3gCfNooJhDeWJXHAiTmONGUQ4YqURb/P5BRq9RkD8OU/Zic9EcoCsnf8Eqpg p8CgJzed0QHdGAc+ucITdXj13yMm/W3+5PuKMkyyFF6tQoxSnC018XGIuNHlE2j2gDvM vS+g== X-Gm-Message-State: AOAM530QaHhjRNtQ7egSkRovo+O12PwiN9aE3+uKQZrasRPN2tbjKaMg b70YbmU3mTOwKd6Laud7PmFRVVVj3w0= X-Google-Smtp-Source: ABdhPJwo5WxugV7C4Q9ESNMA1YkIWzFYrwPVGcuej69N6fvao9oJeewd1pTHUT0GWdZQgimsBwSWOw== X-Received: by 2002:adf:bd84:: with SMTP id l4mr1571218wrh.346.1623269849620; Wed, 09 Jun 2021 13:17:29 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id v7sm939708wru.66.2021.06.09.13.17.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Jun 2021 13:17:28 -0700 (PDT) In-Reply-To: <179f21d7780.2816.cc5b3318d7e9908e2c46732289705cb0@dancol.org> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=raaahh@gmail.com; helo=mail-wr1-x434.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270611 Archived-At: On 09.06.2021 21:51, Daniel Colascione wrote: > And we shouldn't add user options to paper over bugs. That's ridiculous. > I can't believe we really want to propose a "please make syntax > highlighting wrong" user option. If it's possible to add a user option to disable or enable the fontification of type references in CC Mode, and if its nil value would disable the additional parsing logic required to get that "mostly right", the result could make both Eli happy with increased performance, and you (together with a number of other users) happier with more predictable, yet less ambitious syntax highlighting. And one could then optionally add TreeSitter on top of that.