From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: cc-mode fontification feels random Date: Mon, 7 Jun 2021 17:06:18 -0700 Message-ID: <358a4d63-0e92-81a1-7ddf-269bef10f4c4@dancol.org> References: <86a85d26-75c0-e4a3-e8d3-244c5346dd3a@dancol.org> <83r1hehnz9.fsf@gnu.org> <83lf7mhl3n.fsf@gnu.org> <73ff18bf-66dc-7d7a-a0db-8edc2cdceba8@gmx.at> <83zgw1g5ie.fsf@gnu.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="16936"; 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, acm@muc.de To: Eli Zaretskii , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 08 02:12:59 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 1lqPMY-0004Cz-W0 for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Jun 2021 02:12:59 +0200 Original-Received: from localhost ([::1]:54652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqPMW-0002jO-N7 for ged-emacs-devel@m.gmane-mx.org; Mon, 07 Jun 2021 20:12:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqPGL-0000uD-Bn for emacs-devel@gnu.org; Mon, 07 Jun 2021 20:06:33 -0400 Original-Received: from dancol.org ([2600:3c01:e000:3d8::1]:56892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqPGF-0002Zo-0M; Mon, 07 Jun 2021 20:06:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=DO2M62BoznhfiRXTSNhWIlZK+uT1Rkr1rk04BYpbytk=; b=F4+oXEevnDpIvyJKHd7Qxs7JYS +LUXF7G/bacveAqRgFXqKgncs7FqtwrjafpD5KU29EyqH4ybT0kjDc2AC5CNTnbbd5wrc4iq/ndft opSMj6d8dfs0SgHb1xGAuDsNydsAGmoEFWXcLfc+zPpjXPcDRlTBdiYzE8U3cDWQTnF2QYTpD1QEU iPXl5Z7+eUCsv/uwxhOuFoma+VIAYwqEODsztQ+LwirI3jfWFYKdJrZTm/WNlONei85rDZ4uNOXwC EDJDgJV5rARFr8t5/wX1jz1qMGlr2CrgfARvNPIMrFTdIcYVQ6asDWLBCCGhjWwXrB4pqW5MZ3mIZ +sSuH2XA==; Original-Received: from rrcs-173-196-147-115.west.biz.rr.com ([173.196.147.115]:54282 helo=[10.29.6.40]) by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1lqPG8-0003fP-Cf; Mon, 07 Jun 2021 17:06:20 -0700 In-Reply-To: <83zgw1g5ie.fsf@gnu.org> Content-Language: en-US Received-SPF: pass client-ip=2600:3c01:e000:3d8::1; envelope-from=dancol@dancol.org; helo=dancol.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, SPF_HELO_PASS=-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:270545 Archived-At: On 6/7/21 6:37 AM, Eli Zaretskii wrote: >> From: Stefan Monnier >> Cc: Eli Zaretskii , acm@muc.de, dancol@dancol.org, >> emacs-devel@gnu.org >> Date: Mon, 07 Jun 2021 09:20:22 -0400 >> >>> Unless `open-paren-in-column-0-is-defun-start' is non-nil. >> We can use hacks like this one, indeed, but it's not in fashion >> nowadays. > Yes, we prefer waiting forever for Emacs to respond to a TAB or RET, > and are okay with "random" fontification which triggered this thread. > The price of fashion, I guess. If a modern machine you're waiting "forever" to syntactically scan the buffer from BOB, something is very wrong. There's just no reason to use hacks like open-paren-in-column-0-is-defun-start, especially if we can checkpoint parsing.