From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Augusto Stoffel <arstoffel@gmail.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>,
"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: RE: [External] : Re: master 5c70ff9: New user option 'font-lock-ignore'
Date: Sat, 2 Apr 2022 15:28:51 +0000 [thread overview]
Message-ID: <SJ0PR10MB5488F7ACEDC7A50C215E304BF3E39@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <83mth43sb7.fsf@gnu.org>
[I haven't found the beginning of this thread,
even by searching the mailing list archive...]
FWIW, I proposed a related feature back in 2007,
and again in 2014 (both here and with a patch in
bug #18367 - see links below).
It lets you use text-property `font-lock-ignore'
(same name - surprise! ;-)) to make font-lock
ignore text with that property - "Hands off!".
This means, in particular, that font lock won't
erase or otherwise interfere with non-font-lock highlighting that you apply. You can highlight
and unhighlight text independently (or not) of
`font-lock-mode'.
___
The code is here:
https://www.emacswiki.org/emacs/download/font-lock%2b.el
I've been using it since 2007. It's used, e.g.,
in my libraries `highlight.el', Bookmark+, and
`facemenu+.el'.
___
And before people reply with "Use `font-lock-face'
or `font-lock-extra-managed-props'": No - they
don't do the job at all, as was discussed here
at the time.
Quite the contrary: they just make `font-lock'
_also_ manage the text with the given property;
e.g., turning off `font-lock-mode' turns off any highlighting with that property. The point is
not to give font-lock more control; it's to be
able to _remove_ control by font-lock from given
text.
See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=18367#38
___
2014 emacs-devel thread:
https://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00540.html
https://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00583.html
2007 emacs-devel thread:
https://lists.gnu.org/archive/html/emacs-devel/2007-03/msg01459.html
Bug #18367 thread:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=18367
next prev parent reply other threads:[~2022-04-02 15:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-02 6:36 master 5c70ff9: New user option 'font-lock-ignore' Eli Zaretskii
2022-04-02 7:34 ` Augusto Stoffel
2022-04-02 10:01 ` Eli Zaretskii
2022-04-02 11:18 ` Augusto Stoffel
2022-04-02 11:58 ` Eli Zaretskii
2022-04-02 12:08 ` Augusto Stoffel
2022-04-02 13:52 ` Eli Zaretskii
2022-04-02 16:25 ` Augusto Stoffel
2022-04-02 16:44 ` Eli Zaretskii
2022-04-02 16:52 ` Augusto Stoffel
2022-04-02 14:06 ` Stefan Monnier
2022-04-02 15:28 ` Drew Adams [this message]
2022-04-02 16:25 ` [External] : " Augusto Stoffel
2022-04-02 18:45 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=SJ0PR10MB5488F7ACEDC7A50C215E304BF3E39@SJ0PR10MB5488.namprd10.prod.outlook.com \
--to=drew.adams@oracle.com \
--cc=arstoffel@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.