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#71345: Feature: unleash font-lock's secret weapon; handle Qfontified = non-nil Date: Wed, 05 Jun 2024 12:28:01 -0400 Message-ID: References: <8A929E16-AF10-4D2B-AD71-AEAD4435F016@gmail.com> <1F2B8726-7594-494F-AB9D-08C48B7BCC43@gmail.com> <798B70AF-69BD-479E-992E-5CE9B4924820@gmail.com> <86o78fk4ye.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="9170"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71345@debbugs.gnu.org, jdtsmith@gmail.com, dmitry@gutov.dev To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 05 18:56:07 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 1sEtvi-00023h-Kw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Jun 2024 18:56:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEtvS-00067G-6o; Wed, 05 Jun 2024 12:55:50 -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 1sEtvQ-00066l-Lc for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2024 12:55:48 -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 1sEtvQ-0005SA-Br for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2024 12:55:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sEtvd-00025E-W7 for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2024 12:56: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: Wed, 05 Jun 2024 16:56:01 +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.17176065157871 (code B ref 71345); Wed, 05 Jun 2024 16:56:01 +0000 Original-Received: (at 71345) by debbugs.gnu.org; 5 Jun 2024 16:55:15 +0000 Original-Received: from localhost ([127.0.0.1]:48603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEtus-00022n-6U for submit@debbugs.gnu.org; Wed, 05 Jun 2024 12:55:15 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:2283) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEtUt-0006Rc-BG for 71345@debbugs.gnu.org; Wed, 05 Jun 2024 12:28:23 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 55A94444B9F; Wed, 5 Jun 2024 12:28:03 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1717604881; bh=EDvztW8IDF3rzcxdp84/Ri/mi2egtRWyao6IRQcrxl4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=SfffDe6/C50uhdbJez2xxUb76mVKA7795+AmGWVQ2Ff24GXGbm2KS21L1pGVYg3PB imY28yFQw5WFT53ek9URqjILIwFGrBTojyIhMH1TcV7/SBWcdtSMFVjqjiPfcfAtcw 1wBB3JXY95JHyF8VEC0y4BWkeZyE+We8kNQOBs3DgjD/kK0BXj9GPC8k08QZsE2O08 MaZT0rczNt9PjuZJssoP15qvDjFq7fHPxImG7vPcpMxU/VAmACTS7wkOuMHq01r64t Ne5JXQjwe1wUo5nRqmWA2Xr/KFPH9A0mKZkeu+mVcGKeD2k2suGOlY8jUNM8k3U6J+ plz5YU9OJ6akA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id DB26F444B9E; Wed, 5 Jun 2024 12:28:01 -0400 (EDT) Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C7DFD1203DA; Wed, 5 Jun 2024 12:28:01 -0400 (EDT) In-Reply-To: <86o78fk4ye.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 05 Jun 2024 14:24:25 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286620 Archived-At: >> 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. > > Not sure I understand how this remark is relevant to the issue > discussed here, but let me just point out that when redisplay starts > working on a window, it temporarily moves point to the window-point > position. So position-dependent highlighting will behave in each > window according to its window-point, which I think is what's expected > here? But the highlighting is done "once and for all" (at least until the next command), so if you want it to be different in different windows (to reflect the different values of `point` in those windows) you'll need overlays with the `window` property because the highlighting will not be re-done in the middle of redisplay when we go from one window to another. Stefan