Subject: Re: bug#20146: font-lock-extend-jit-lock-region-after-change: results are discarded instead of being returned.

From: Stefan Monnier <[email-masked]>
Date: Wed, 25 Mar 2015 14:26:06 -0400

> OK.  But I have to be aware of how jit-lock works: in particular how the
> actions in after-change-functions influence those of
> jit-lock-fontify-now and font-lock-fontify-region.

No, that's the wrong way to go about it.
Just assume jit-lock is an *adversary*, which chooses the bounds it passes
to font-lock-fontify-region trying to find holes in your code.

        Stefan