From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57447: 28.1.90; Can font-lock stop requesting fontification of invisible text? Date: Sat, 27 Aug 2022 11:21:11 -0400 Message-ID: References: <87fshi6ygu.fsf@localhost> <837d2u184w.fsf@gnu.org> <87bks66sfk.fsf@localhost> <831qt211tw.fsf@gnu.org> <8735diezv3.fsf@localhost> <83r112ymjn.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34477"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57447@debbugs.gnu.org, Ihor Radchenko To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 27 17:22:26 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oRxdi-0008nr-59 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Aug 2022 17:22:26 +0200 Original-Received: from localhost ([::1]:34784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRxdg-0001Z7-Ii for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Aug 2022 11:22:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRxdK-0001Yz-SN for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 11:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38821) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRxdK-0003qu-CY for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 11:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRxdK-0000c2-7p for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 11:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Aug 2022 15:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57447 X-GNU-PR-Package: emacs Original-Received: via spool by 57447-submit@debbugs.gnu.org id=B57447.16616136822309 (code B ref 57447); Sat, 27 Aug 2022 15:22:02 +0000 Original-Received: (at 57447) by debbugs.gnu.org; 27 Aug 2022 15:21:22 +0000 Original-Received: from localhost ([127.0.0.1]:56803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRxcg-0000bB-GK for submit@debbugs.gnu.org; Sat, 27 Aug 2022 11:21:22 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:45786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRxce-0000ax-9y for 57447@debbugs.gnu.org; Sat, 27 Aug 2022 11:21:20 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id CD86E10027D; Sat, 27 Aug 2022 11:21:14 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0874B100130; Sat, 27 Aug 2022 11:21:13 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1661613673; bh=CVCkJN5reoevAjQea/nvhQH/ASpCwxkKrRaSnht8d40=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=OwPfFu6foPZi5C63qELfm/ZwNLzEQyMW2DigiuI+ORDSGOR0N65lrJbxzpt1wsvfB 8p3kN1cihRJToJHUU+Yw4YJQ0v2Ilr0JKoVKnhDMUuq5lAbs8jtFqK7eJoK7vpINTe M5CD1Oz0wPiewLI/RXF9vtIV6WbXzpwIQYPEKp0f4qsoAJqvNFvPEUIrE9W4oiTUO4 yK4ZTuWlThmb+7s4Ivl3MtZ99L0hQ8acJMiUpaaNBZOPVN0ggejGAmkcfq2TKZNmwb NMkN2o5tg3XKVn4cr/fo5IW5Wkck4ZGASXX1+iE5sdSM2RjcIQLTVz7YOmuk2AXidX LYP62wkuBnjFA== Original-Received: from pastel (unknown [45.72.195.111]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BAC64120306; Sat, 27 Aug 2022 11:21:12 -0400 (EDT) In-Reply-To: <83r112ymjn.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 27 Aug 2022 14:05:00 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:240939 Archived-At: >> > If the size is smaller than the visible portion of the buffer, it will >> > cause repeated calls to fontification-functions, instead of just one >> > call. If fontification-functions do their job in approximately linear >> > time, you shouldn't see any adverse effects, I think. But if each >> > call to fontification-functions incurs some one-time overhead that is >> > relatively expensive, the result could be slower redisplay when the >> > window is scrolled a lot. >> This may be an issue in some scenarios. >> I am wondering if something like font-lock-extend-region-functions may >> be utilized to shrink the fontification boundaries. > I don't know. Maybe Stefan does. The short answer is: no. [ Tho I don't understand how the question relates to the text before it: reducing the size of a chunk wouldn't reduce the number of times fontification-functions is called. ] Stefan