[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to prevent font-lock (& jit-lock etc.) from refontifying?
From: |
Kevin Rodgers |
Subject: |
Re: How to prevent font-lock (& jit-lock etc.) from refontifying? |
Date: |
Wed, 13 Oct 2004 09:23:01 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
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)
--
Kevin Rodgers