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: Partly deferred font-locking? Date: Wed, 11 Jan 2023 21:58:03 +0200 Message-ID: <83zgaolu7o.fsf@gnu.org> References: <87bkn52dso.fsf@web.de> <834jsxm0c7.fsf@gnu.org> <871qo03omi.fsf@web.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20351"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 11 20:58:20 2023 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 1pFhEp-0004wb-L3 for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Jan 2023 20:58:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFhEL-0008QZ-DU; Wed, 11 Jan 2023 14:57:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFhEJ-0008QM-4r for emacs-devel@gnu.org; Wed, 11 Jan 2023 14:57:47 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFhEH-00087E-AP; Wed, 11 Jan 2023 14:57:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=vwesV8lMS6y6fq/+cjLqLb0bDMlC5Nedi4JqVxMKOAQ=; b=i6AMLa7jKDds ad/F6juRbuAGBveZthxxgdsW+Rjxmdbom5uWzMSIVBb0jnpmUGEnaxvbefgpvLNs4cU33Do2REXfC jO+8ILUORi/uBjVeiTCxTFOz21Ht6C/M/WcQxkn2nf/QjckyCakV9gMjm79Fi771LTkS2ieMoqONR aL9Il9xOrV5425/jRU6mXcBS0kK7JWSpVve2MkvU+vW2kA0PuODt3r5JWp13UGim3YKXGATrnkvqp qx8aBXW6vygtTgpO/gp+x3fuWV2+QgL0EjoauIEn8zdWiKDLHq7jzKfwNEr7gRQSn+YL51DGzzQvA Q7XtRrBQfZHgf70LwYNW9w==; Original-Received: from [87.69.77.57] (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 1pFhE2-0001in-CV; Wed, 11 Jan 2023 14:57:44 -0500 In-Reply-To: <871qo03omi.fsf@web.de> (message from Michael Heerdegen on Wed, 11 Jan 2023 19:36:05 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302362 Archived-At: > From: Michael Heerdegen > Date: Wed, 11 Jan 2023 19:36:05 +0100 > > Eli Zaretskii writes: > > > I think it's basically impossible to know up front which parts of > > fontifications will be expensive and which won't. For starters, it > > depends on the text around the window. > > Probably. OTOH, for some parts it's clear that they are always expensive > (like for the nearly context insensitive dired buffer fontification). My point is that your example is the exception rather than the rule. Fontifications almost never access files or do any other fancy stuff like that. At least AFAIK.