[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: perl mode color highlighting working badly
From: |
martin rudalics |
Subject: |
Re: perl mode color highlighting working badly |
Date: |
Tue, 01 Nov 2005 17:19:14 +0100 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
I see three potential problems with your approach:
As far as I understand `font-lock-syntactically-fontified' is not reset
after a buffer change. Hence `font-lock-fontify-syntactically-region'
and `font-lock-fontify-syntactic-keywords-region' might fail both after
a buffer has been modified. I believe that `jit-lock-after-change'
should contain something like
(setq font-lock-syntactically-fontified
(min font-lock-syntactically-fontified start))
Moreover I don't know what `font-lock-syntax-props-depend-on-themselves'
is needed for. `font-lock-fontify-syntactically-region' should work
correctly without it since it starts at `sbeg' anyway. On the other
hand, scrolling upwards into unfontified text might become slower since
you alway reset `font-lock-syntactically-fontified' to END even if the
entire buffer is already syntactically fontified.
Finally, doing `font-lock-fontify-syntactically-region' from `sbeg'
without doing a `font-lock-fontify-keywords-region' from `sbeg' too
seems problematic. But I'll have to study this more thoroughly yet.
Hence don't take my remarks too seriously.
- Re: perl mode color highlighting working badly,
martin rudalics <=
- Re: perl mode color highlighting working badly, Stefan Monnier, 2005/11/01
- Re: perl mode color highlighting working badly, martin rudalics, 2005/11/02
- Re: perl mode color highlighting working badly, Stefan Monnier, 2005/11/02
- Re: perl mode color highlighting working badly, Stefan Monnier, 2005/11/02
- Re: perl mode color highlighting working badly, martin rudalics, 2005/11/03
- Re: perl mode color highlighting working badly, Stefan Monnier, 2005/11/03
- Re: perl mode color highlighting working badly, martin rudalics, 2005/11/04
- Re: perl mode color highlighting working badly, Stefan Monnier, 2005/11/04
Re: perl mode color highlighting working badly, Stefan Monnier, 2005/11/02