unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: How to prevent font-lock (& jit-lock etc.) from refontifying?
Date: Wed, 13 Oct 2004 10:22:38 -0700	[thread overview]
Message-ID: <FDELKNEBLPKKDCEBEJCBMEGICIAA.drew.adams@oracle.com> (raw)
In-Reply-To: <416D4855.2000406@yahoo.com>

Thanks for your replies. Does anyone know if it is true that font-lock
provides no way to prevent it from refontifying in the way I described? I'm
thinking there must be a (simple) way that I'm ignorant of. I can't believe
that they (we) would change font-lock in a way that lets it impose itself so
completely.

-----Original Message-----From: Kevin Rodgers
Sacha Chua wrote:
 > "Drew Adams" <drew.adams@oracle.com> writes:
 > > In Emacs 21, suppose that I apply a face to certain spans of text.
Maybe the
 > > buffer is already font-locked before doing this, maybe not. In either
case,
 > > I want these spans of text to show the face I apply, overriding any
 > > font-lock highlighting that might be there.
 >
 > One workaround would be to use overlays instead, as overlays override
 > font properties. Not the answer you're looking for, but might be
 > helpful...

Another technique I've used to work around this problem is to set the
category property instead of the face property:

(put 'foo 'face 'foo-face)
(put-text-property start end 'category 'foo)

  reply	other threads:[~2004-10-13 17:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-12 19:51 How to prevent font-lock (& jit-lock etc.) from refontifying? Drew Adams
2004-10-12 20:27 ` Drew Adams
2004-10-13 10:06 ` Sacha Chua
     [not found] ` <mailman.2950.1097663332.2017.help-gnu-emacs@gnu.org>
2004-10-13 15:23   ` Kevin Rodgers
2004-10-13 17:22     ` Drew Adams [this message]
     [not found] <mailman.3061.1097688611.2017.help-gnu-emacs@gnu.org>
2004-10-13 18:32 ` Oliver Scholz
     [not found] <mailman.2867.1097623015.2017.help-gnu-emacs@gnu.org>
2004-10-13 21:20 ` Stefan Monnier
2004-10-13 22:07   ` Drew Adams
2004-10-13 22:55     ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FDELKNEBLPKKDCEBEJCBMEGICIAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).