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 17:53:00 +0300 Message-ID: <86a5jzjvar.fsf@gnu.org> References: <86msnzk4pl.fsf@gnu.org> <64828D71-7A1D-4826-811A-A30E870358C7@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10590"; 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 16:56:01 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 1sEs3V-0002Uv-8o for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Jun 2024 16:56:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEs3K-000067-Mk; Wed, 05 Jun 2024 10: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 1sEs3I-00005c-EP for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2024 10: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 1sEs3I-0007sD-67 for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2024 10:55:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sEs3V-0002GP-Vp for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2024 10:56: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 14: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.17175993388643 (code B ref 71345); Wed, 05 Jun 2024 14:56:01 +0000 Original-Received: (at 71345) by debbugs.gnu.org; 5 Jun 2024 14:55:38 +0000 Original-Received: from localhost ([127.0.0.1]:40564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEs37-0002FE-4b for submit@debbugs.gnu.org; Wed, 05 Jun 2024 10:55:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEs34-0002Ep-To for 71345@debbugs.gnu.org; Wed, 05 Jun 2024 10:55:36 -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 1sEs0f-0007F6-4X; Wed, 05 Jun 2024 10:53:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=yTYqgtgx7fu2bOoGeGUTjELEGIXft5hKyMDcceGDKzE=; b=FGZZb+Mi+nswBFf6lJ91 B0XDRjWqELC9mlic9R5v05Y46c49R47HUGe3oBI6/nC+F57uVpxK0Pi7krNbon/Wxcr5vF2hSmcpm Og548QHasAHNI+2Xf2rpmFTsp851BcoLEwTNhV8QwtJGtrBnFevqnbHFkpPJgH3qltirRSoStURP0 u+yE8aLsyHnyI0JYLSi32kVxEId1MjKfwzFPu5rvWDWcrTMk4QXMiI7XcmZY7tDIbEz95xxCEiD2g b8pJB29/0PMfO7bauu1T69OsO3x7R90/y/I+ZgY6U7+40qxqoG1MCA0kw4/VPSZj4jsKcIcBMW2YU CHUdVo8Jkawx8g==; In-Reply-To: <64828D71-7A1D-4826-811A-A30E870358C7@gmail.com> (message from JD Smith on Wed, 5 Jun 2024 10:02:23 -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:286610 Archived-At: > From: JD Smith > Cc: monnier@iro.umontreal.ca, 71345@debbugs.gnu.org > Date: Wed, 5 Jun 2024 10:02:23 -0400 > > 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. > > Not in my case, since I am discriminating between point in the selected window and other windows showing the > same buffer, such that switching windows = changing point. Since much of the work in my mode is not > position-dependent but depends on text content, updating face is the natural thing. Sorry, I don't think I understand you. But if the fact that redisplay moves point to window-point doesn't bother me, we can drop this issue. > Thinking more about what makes font-lock “special” as a jit-lock backend, it is exactly this: font-lock claims > exclusive ownership of `face'. Solutions I can see: > > 1 Make font-lock a good citizen by using its own alias for face. > 2 Give other jit-lock backends which may alter face and potentially conflict with font-lock the ability to specify > to jit-lock “if you re-run font lock on a region, re-run me too after that.” I don't understand. The solution to this dilemma is well known: Lisp programs that want to control faces without turning off font-lock mode should set font-lock-face property, instead of the face property. Why do you need to find another solution?