bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: font-lock latency


From: Simon Josefsson
Subject: Re: font-lock latency
Date: Thu, 05 Sep 2002 05:58:47 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

Richard Stallman <rms@gnu.org> writes:

>     Doesn't help, the line is still incorrectly highlighted.  I even tried
>     pressing M-g M-g on every line of the buffer, but it was still wrong.
>     C-l doesn't help either.  Only way to get it right is to wait a few
>     (3?) seconds.
>
> If some code that runs after 3 seconds gets it right,
> the first thing to do is find that code,
> and see how it gets the right results.

The code is `jit-lock-stealth-fontify'.  I now realized that if I set
`jit-lock-stealth-time' to 0 _before_ I enable font-lock-mode, it does
what I want -- that is, update the buffer immediately.

jit-lock.el looks like voodoo to me, so I'm not going to try to find
out what caused the original problem.  Unless it has negative
consequences, I think the default of `jit-lock-stealth-time' should be
changed to 0 so that this bug isn't visible.  Assuming noone finds the
original cause of the problem, that is.





reply via email to

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