emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: how to prevent font-lock from messing with a portion of text?


From: Drew Adams
Subject: RE: how to prevent font-lock from messing with a portion of text?
Date: Sun, 25 Mar 2007 22:52:23 -0700

> Don't you have to take care of font-lock-default-fontify-region too?

Not that I can see. Did you try it? It takes only a minute to try.

`font-lock-default-fontify-region' does its job through other functions,
such as `font-lock-unfontify-region',
`font-lock-fontify-syntactic-keywords-region',
`font-lock-fontify-syntactically-region', and
`font-lock-fontify-keywords-region'.

`font-lock-default-fontify-region' never adds any text properties itself. By
substituting `put-text-property-unless-ignore' for `put-text-property' in
those other functions, `font-lock-default-fontify-region' is "taken care of"
also.

Let me know if you see a problem with it.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]