From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: cc-mode fontification feels random Date: Sat, 12 Jun 2021 17:20:36 +0300 Message-ID: <83bl8b88qz.fsf@gnu.org> References: <179f6e4fa40.2816.cc5b3318d7e9908e2c46732289705cb0@dancol.org> <83fsxpbpn9.fsf@gnu.org> <83k0n09tkp.fsf@gnu.org> <837dj09p0e.fsf@gnu.org> <20210611232535.b4dyu3a2yxvdixys@Ergus> <87a6nw6jtf.fsf@telefonica.net> <20210612010844.45noqsg7wveeo3yw@Ergus> <83sg1n8t71.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9492"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ofv@wanadoo.es, spacibba@aol.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 12 16:22:25 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 1ls4Wn-0002IF-6B for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Jun 2021 16:22:25 +0200 Original-Received: from localhost ([::1]:51036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ls4Wl-0001kw-Ix for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Jun 2021 10:22:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ls4VE-0000QU-Ix for emacs-devel@gnu.org; Sat, 12 Jun 2021 10:20:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41936) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ls4VB-0005hO-FK; Sat, 12 Jun 2021 10:20:45 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3287 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ls4VB-0001MS-2E; Sat, 12 Jun 2021 10:20:45 -0400 In-Reply-To: (message from Stefan Monnier on Sat, 12 Jun 2021 10:00:26 -0400) 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:270763 Archived-At: > From: Stefan Monnier > Cc: Ergus , ofv@wanadoo.es, emacs-devel@gnu.org > Date: Sat, 12 Jun 2021 10:00:26 -0400 > > > The other design issue with TS integration is that I'd like it to plug > > into the JIT font-lock interface of the display engine, so that we > > don't unnecessarily fontify parts of the buffer that won't be > > displayed, and always do fontify the parts that will be. > > Hm... AFAIK that's already what emacs-tree-sitter does. Can you point me to the code which does that?