[Top][All Lists]
[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.
- Re: how to prevent font-lock from messing with a portion of text?, (continued)
- Re: how to prevent font-lock from messing with a portion of text?, Stefan Monnier, 2007/03/23
- RE: how to prevent font-lock from messing with a portion of text?, Drew Adams, 2007/03/23
- Re: how to prevent font-lock from messing with a portion of text?, Lennart Borgman (gmail), 2007/03/23
- Re: how to prevent font-lock from messing with a portion of text?, Stefan Monnier, 2007/03/24
- Re: how to prevent font-lock from messing with a portion of text?, Lennart Borgman (gmail), 2007/03/24
- Re: how to prevent font-lock from messing with a portion of text?, Stefan Monnier, 2007/03/24
- Re: how to prevent font-lock from messing with a portion of text?, Lennart Borgman (gmail), 2007/03/24
- Re: how to prevent font-lock from messing with a portion of text?, Stefan Monnier, 2007/03/24
- RE: how to prevent font-lock from messing with a portion of text?, Drew Adams, 2007/03/25
- Re: how to prevent font-lock from messing with a portion of text?, Lennart Borgman (gmail), 2007/03/25
- RE: how to prevent font-lock from messing with a portion of text?,
Drew Adams <=
- Re: how to prevent font-lock from messing with a portion of text?, Lennart Borgman (gmail), 2007/03/26
- RE: how to prevent font-lock from messing with a portion of text?, Drew Adams, 2007/03/26
- Re: how to prevent font-lock from messing with a portion of text?, Stefan Monnier, 2007/03/26
- Re: how to prevent font-lock from messing with a portion of text?, Miles Bader, 2007/03/26
- RE: how to prevent font-lock from messing with a portion of text?, Drew Adams, 2007/03/26
- RE: how to prevent font-lock from messing with a portion of text?, Drew Adams, 2007/03/26
- Re: how to prevent font-lock from messing with a portion of text?, Stefan Monnier, 2007/03/26
- RE: how to prevent font-lock from messing with a portion of text?, Drew Adams, 2007/03/26