> For that to work correctly I also had to adapt
> `jit-lock-context-unfontify-pos' in the custom function as suggested by
> you earlier. Otherwise the part of the region before the line where
> a change happened won't get refontified correctly. That means it will
> only be refontified upon redisplay (I guess), e.g. if one enters the
> minibuffer with `M-x'. So I wonder if a hook in
> `font-lock-default-fontify-region' might have to cater for that as well.
Yes, indeed. But we can make font-lock-default-fontify-region take care of
it transparently without the hook having to know about it.
Stefan