From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: cc-mode fontification feels random Date: Mon, 14 Jun 2021 10:29:27 +0200 Message-ID: References: <86a85d26-75c0-e4a3-e8d3-244c5346dd3a@dancol.org> <83r1hehnz9.fsf@gnu.org> <83lf7mhl3n.fsf@gnu.org> <73ff18bf-66dc-7d7a-a0db-8edc2cdceba8@gmx.at> <4140fcf4-3119-3f3f-4ac4-24d497774754@gmx.at> <874ke2ulhc.fsf@gmail.com> <706b6214-5a85-3b47-3851-bb7742a066af@gmx.at> <87r1h5u6qp.fsf@gmail.com> 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="7857"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Richard Stallman , emacs-devel , Stefan Monnier , Alan Mackenzie , Eli Zaretskii , Daniel Colascione To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 14 10:33:29 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 1lsi2C-0001ua-OS for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Jun 2021 10:33:28 +0200 Original-Received: from localhost ([::1]:52912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsi2B-0000sT-O8 for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Jun 2021 04:33:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lshyb-0002PD-VJ for emacs-devel@gnu.org; Mon, 14 Jun 2021 04:29:45 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:58657) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lshya-0005rm-5O; Mon, 14 Jun 2021 04:29:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1623659371; bh=Y63FVVnBCO4qh/p2SiO3c2Tl5LYXRFQHXwWdnhvbH9k=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=CX+BZgmYGGoEewYD30DDhhkj+6EsGjr7xnU+bRFUNEDUvqElvX25qPqMLvN7ZiOLM 60R2T2q324AfdK7S18MDFBtaVdzEjDYm9h/zNTmeAZ4PYk86rnQynjpnBcYxXBG2OR zRB82YZhJxfxcEF0GTHBpn92titGtEiKr2aq2e7o= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([213.142.96.161]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MPGRp-1lgOgh3bvJ-00PePs; Mon, 14 Jun 2021 10:29:30 +0200 In-Reply-To: <87r1h5u6qp.fsf@gmail.com> Content-Language: en-US X-Provags-ID: V03:K1:lL0kckpYV5ZNZPR+Dlu1opXeiPRNoaDeb3cfpnIxa1QLxhiQCaK AY3Eyfx4LNFRjk6cnP2SxSDq965ipBgm+60Mx1yjipjT/RZRjSzgppRpLJ+1pwfT4G6ZhPe g64pHjlSmuHfquYKZsCxMU1rdJLkP4CVSrHk7eDYWH/OGoVtkgw0mGXDojoch4GnHhUN1gS IBZp9llzLUgMKubryDrTQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:WU/NooBznLk=:xPDhpuzrLYHrFCOOhMj2gg bHjSCAXdm9a8h418RfAfN0/p+JhURYY3yg+F+1RLHHX2Ag8Y8YLHn+fN7eML8NWiqFLS+3xJT n0ml3GK8OQ4AvuKZB2Dm4gA77d9kwG0t58hW9S2ZZerxm/4XksXhaNWBECVcS4rzO7XrQ1o4p +qzDnoPo6JBxSOUq6aHASGjVd9MWA0KLLPjdX0qoeYnmvZ8I9hvqBtyoBYFAve/N79PrHfODY 4JNa6x5HF2zsL741mFkFD3byQYrAC8pR7QZsZGiuwdDzSQea70EcQE7Y/olgbSdByyWg6Sewr YoUOGwUUwVFXMSogDVumFj2R+wXIFKmVmdW7Y1AsnIPgtkAdciiOsxN0r67iHFC2hEYz1cbti 9CQS/TeLpSaPPniPsHbXxBNpBkgXerMBbXCQMnuHAHM7N0+w75Kwsr3jmd3ue6rpl1bwFm+CU ANMOVZspT0PvGz17Ne4PEi/rg1Eo77lfC4iWTKTKijYNlu7WXx8vpT6+nkD3Hhz59gAv9PHSc Z9vOVV9T02ULRFpMfmGwYLKLQv77Q4PJrLNOQPchJ+HXrLnqQzlSryrun40huKh2H2lWMhJfI fxq75sys6po9CPtNrRhDTHEPo1tTOx43Fs5p6z95/ewVujazAS1bgDF3RKV6WRnuziMpNexJz +tlAqrbbtESH7pJ8BlyRHM8MA5GMjKEClsEBgzCkyLVJ20My/loO/gJZhz+UgabukVxL5DSyn tmDRCQz5DYgZpVg0/rqK7u755iUTV4R/AfCyXrHGIbrT3DSZyEC+0I1Q/HW+mXiZ7mb3cU0T Received-SPF: pass client-ip=212.227.17.20; envelope-from=rudalics@gmx.at; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:270803 Archived-At: > I benchmarked the effects of this > in large files according to specific instructions by Eli who was also > concerned about the performance hit and found no evidence of any kind of > punishment. Why on earth should file size have any impact on the performance of this option? It introduces a constant overhead that affects every single character a user types. You simply delay unfontifying the remaining part of a buffer until editing leaves the current line. >> And it should be documented somewhere. > > See C-h v jit-lock-antiblink-grace. It should be documented in at least one manual. > If it's a performance-only optimization with non-zero functional > detriment it should be off by default. It is undocumented practice to steadily undermine the role of `open-paren-in-column-0-is-defun-start' in all modes with `beginning-of-defun' the only place left where it currently has any impact. For some reason, people are afraid though of setting it off by default (or declaring it obsolete). martin