emacs-devel
[Top][All Lists]
Advanced

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

Re: jit-lock doesn't honor font-lock-lines-before


From: Stefan Monnier
Subject: Re: jit-lock doesn't honor font-lock-lines-before
Date: Thu, 01 Sep 2005 10:11:44 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> In `font-lock-default-fontify-region', immediately before the comment

>            ;; check to see if we should expand the beg/end area for
>            ;; proper multiline matches

> insert either

>            (setq beg (line-beginning-position (1- font-lock-lines-before)))

Oh, I see we violently agree.  I've committed the change.

> or - but this would have to be mentioned in the doc-string of
> `font-lock-lines-before' -

>            (when font-lock-multiline
>              (setq beg (line-beginning-position (1- font-lock-lines-before))))

I'd rather not force people to use font-lock-multiline at the same time as
font-lock-lines-before since they interact in non-trivial ways.
I'd actually rather recommend to avoid using the two together.

> remove the corresponding line from `font-lock-after-change-function' and
> wait what happens?  I'm still sceptical, though ... fontifications would
> always overlap by `font-lock-lines-before' lines.

The default setting of font-lock-lines-before makes it a nop (as it
should).  Major modes which rely on it should set it to the
appropriate value.


        Stefan




reply via email to

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