|
From: | Stefan Monnier |
Subject: | Re: Excessive refontification when setting jit-lock-context-unfontify-pos |
Date: | Wed, 25 Apr 2007 03:28:15 -0400 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.97 (gnu/linux) |
>>> j-l-c-u-p seemed to be the only mechanism working reliably. In my >>> f-l-fontify-region-function I tried to set the f-l-multiline and >>> j-l-defer-multiline properties on the region in question which had no >>> effect. >> >> In your f-l-fontify-region-function, you should do what you'd otherwise do >> in f-l-extend-region: i.e. extend the region. No messing with >> font-lock-multiline or other properties. Just computing a new (larger) >> region and passing that to f-l-default-fontify-region. > That's what I do. (See `font-latex-fontify-region'.) But the > multiline construct does not get fully highlighted if I don't set > j-l-c-u-p or set the fontified property to nil. Try C-l to make sure that the highlighting is really absent from the buffer, rather than merely being "not yet displayed". Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |