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.bugs Subject: bug#71345: Feature: unleash font-lock's secret weapon; handle Qfontified = non-nil Date: Wed, 05 Jun 2024 14:29:42 +0300 Message-ID: <86msnzk4pl.fsf@gnu.org> References: <8A929E16-AF10-4D2B-AD71-AEAD4435F016@gmail.com> <1F2B8726-7594-494F-AB9D-08C48B7BCC43@gmail.com> <798B70AF-69BD-479E-992E-5CE9B4924820@gmail.com> <2D33113E-2F9F-44BD-8CB9-5BC8C0AED5AC@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39900"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71345@debbugs.gnu.org, monnier@iro.umontreal.ca To: JD Smith Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 05 13:49:24 2024 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 1sEp8t-000ABt-OE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Jun 2024 13:49:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEp8N-0006G3-B0; Wed, 05 Jun 2024 07:48:51 -0400 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 1sEp8L-0006FR-Cl for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2024 07:48:49 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sEp8K-0000fO-W0 for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2024 07:48:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sEp8Y-0001dd-Ua for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2024 07:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Jun 2024 11:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71345 X-GNU-PR-Package: emacs Original-Received: via spool by 71345-submit@debbugs.gnu.org id=B71345.17175880856019 (code B ref 71345); Wed, 05 Jun 2024 11:49:02 +0000 Original-Received: (at 71345) by debbugs.gnu.org; 5 Jun 2024 11:48:05 +0000 Original-Received: from localhost ([127.0.0.1]:55067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEp7d-0001Yu-0o for submit@debbugs.gnu.org; Wed, 05 Jun 2024 07:48:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEp7a-0001Xs-Gv for 71345@debbugs.gnu.org; Wed, 05 Jun 2024 07:48:03 -0400 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 1sEopv-00047R-2S; Wed, 05 Jun 2024 07:29:47 -0400 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=51DcnxF7M0SZjntRQ0EsDSH02//9+3bRHt3KT5x7phc=; b=F59rWa3c4kJl iHpVdfALwfFbAuUvzv9H+7W306kh6jQJxS7AtMsBag4s1LdQW18EEO4ag4+Bkd4zakXlZ/3nFGtUm /zSO5bNC1yRX+Y7DFSNpOZG1kqHReYwMPHhRu5zmX0iaa8Dg5e1zEA4L3hBqAvceabjDj3mHY8deg rY991Kn3QhBQEHrsDynynP/BRHQgHnwFeu7I5XbeMkLVJ1Z9/505j2aqPBxgWMw7iAXBh5Nc6goDp Z2y3FIn1GBvFreXjOwpeBQYfJ/VS3aU/vCjUMdOKatbXh5sCbRx5ie3jHrzvEiFY8MCfuSjlvr8RR sbW0ZpAFWsYfySK+MDxgoQ==; In-Reply-To: <2D33113E-2F9F-44BD-8CB9-5BC8C0AED5AC@gmail.com> (message from JD Smith on Tue, 4 Jun 2024 18:41:01 -0400) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286592 Archived-At: > Cc: 71345@debbugs.gnu.org > From: JD Smith > Date: Tue, 4 Jun 2024 18:41:01 -0400 > > (jit-lock-flush (min my-pd-old-beg (my-pd-new-beg-estimate)) > (max my-pd-old-end (my-pd-new-end-estimate)) > #'my-pd-backend) > > I don't need to estimate, I have treesitter to tell me precisely! Only if the parser successfully and correctly parses the buffer text. > Because a given buffer can have several (window-)points, > position-dependent highlighting will ideally want to be added via > (window-specific) overlays rather than text-properties. > > In general, yes. In my case having the scope be per-buffer not per window makes the most sense in terms of > the functionality. Given the feature of redisplay I just mentioned, you will actually get a per-window functionality, at least as far as the position of point is concerned.