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: bug-reference-prog-mode slows down CC Mode's scrolling by ~7% Date: Fri, 03 Sep 2021 09:10:24 +0300 Message-ID: <83a6kuyysv.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26501"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 03 08:11:30 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 1mM2QE-0006jY-I9 for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Sep 2021 08:11:30 +0200 Original-Received: from localhost ([::1]:41352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mM2QD-00078T-Bl for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Sep 2021 02:11:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mM2PD-0006FV-Ik for emacs-devel@gnu.org; Fri, 03 Sep 2021 02:10:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60876) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mM2PC-0008Br-5y; Fri, 03 Sep 2021 02:10:26 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1833 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 1mM2PB-0004rP-Ol; Fri, 03 Sep 2021 02:10:26 -0400 In-Reply-To: (message from Alan Mackenzie on Thu, 2 Sep 2021 19:24:51 +0000) 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:273746 Archived-At: > Date: Thu, 2 Sep 2021 19:24:51 +0000 > From: Alan Mackenzie > Cc: emacs-devel@gnu.org > > In words (;-), only the first function on jit-lock-functions should be > able to expand the region which gets `fontified' text properties. This > expanded region will then be supplied to the subsequent functions. > > Given how little used the `jit-lock-bounds' mechanism is (there is one > function in Emacs, font-lock-default-fontify-region, which uses it, and > a web search revealed only a single other instance, in lsp-mode on > git-hub), this shouldn't cause problems. In fact, I'm not sure the > lsp-mode use of it is even correct. Bother: this is not future-proof, and certainly isn't scalable. If we are changing the protocol, can we instead come up with a more scalable change, so that functions won't "fight" in the future who gets to be "the first"?