[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: jit-lock refontifies too much
From: |
Richard M. Stallman |
Subject: |
Re: jit-lock refontifies too much |
Date: |
Wed, 28 Sep 2005 13:10:55 -0400 |
> It would be better just to keep comparing until you reach a line that
> previously was fontified. After all, the line that was not fontified
> before certainly should get fontified, if it is on the screen. But a
> subsequent line that was previously fontified may not need to be
> changed.
>
This might work for a single window on one and the same buffer. With
two windows there might remain some unfontified stretch between the
portions shown in the windows.
So what?
> That is why I suggested recording these ppss values in text
> properties of the first character on a line--so that they would stay
> around for comparison later.
That would be fine. But recording these properties for each and every
line fontified would introduce too much overhead.
I suspect think it is comparable to the amount of space used by
font-lock mode now. Maybe less. If so, why is it too much?
> Another possible advantage is: if things are not in sync for the first
> line after the end of the changed text, it might be in sync on a
> subsequent line, and that could avoid refontifying most of the lines
> on the screen.
>
I can think of two interpretations for "things are not in sync":
It means "the before and after ppss values do not match".
You're arguing this can't happen very easily. Maybe that is true.
- Re: jit-lock refontifies too much, (continued)
- Re: jit-lock refontifies too much, martin rudalics, 2005/09/15
- Re: jit-lock refontifies too much, Richard M. Stallman, 2005/09/19
- Re: jit-lock refontifies too much, Stefan Monnier, 2005/09/20
- Re: jit-lock refontifies too much, martin rudalics, 2005/09/21
- Re: jit-lock refontifies too much, Stefan Monnier, 2005/09/21
- Re: jit-lock refontifies too much, martin rudalics, 2005/09/22
- Re: jit-lock refontifies too much, Stefan Monnier, 2005/09/22
- Re: jit-lock refontifies too much, martin rudalics, 2005/09/25
- Re: jit-lock refontifies too much, Richard M. Stallman, 2005/09/26
- Re: jit-lock refontifies too much, martin rudalics, 2005/09/27
- Re: jit-lock refontifies too much,
Richard M. Stallman <=
- Re: jit-lock refontifies too much, Stefan Monnier, 2005/09/27
- Re: jit-lock refontifies too much, martin rudalics, 2005/09/28
- Re: jit-lock refontifies too much, Stefan Monnier, 2005/09/28
- Re: jit-lock refontifies too much, martin rudalics, 2005/09/29
- Re: jit-lock refontifies too much, Stefan Monnier, 2005/09/29
- Re: jit-lock refontifies too much, Richard M. Stallman, 2005/09/24