[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Syntax Highlighting Latency in Emacs
From: |
Kai Grossjohann |
Subject: |
Re: Syntax Highlighting Latency in Emacs |
Date: |
Mon, 13 Dec 2004 13:08:07 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
jab3 <manual@helpdesk.org> writes:
> I don't want to start a war or anything (because it probably has something
> to do with my system), but I am curious about something I've noticed with
> Emacs as compared with vim. If I'm looking at a source code file in vim,
> (and it doesn't even have to be that large - maybe a few thousand K) the
> syntax highlighting is automatic. And if I edit something, which changes
> the highlighting of the rest of the file, it is instantaneous. But in
> Emacs, there is a 2 or 3 second delay in the updating of the highlighting.
I think Emacs now uses jit-lock as the font-lock-support-mode. This
exhibits the symptoms you're mentioning. You can also turn off
font-lock-support-mode completely, then font-locking should be
instantaneous. However, then you also have to wait long after opening
a large file, because font-lock then goes through and fontifies the
whole file.
(lazy-lock is another alternative for font-lock-support-mode which
works similarly to jit-lock but is implemented in Lisp.)
Of course, there are various tunables, as others have mentioned.
Kai
- Syntax Highlighting Latency in Emacs, jab3, 2004/12/11
- Re: Syntax Highlighting Latency in Emacs, Peter Dyballa, 2004/12/12
- Re: Syntax Highlighting Latency in Emacs, Thien-Thi Nguyen, 2004/12/12
- Message not available
- Re: Syntax Highlighting Latency in Emacs, jab3, 2004/12/12
- Re: Syntax Highlighting Latency in Emacs, Peter Lee, 2004/12/21
- Re: Syntax Highlighting Latency in Emacs, jab3, 2004/12/21
- Re: Syntax Highlighting Latency in Emacs, Peter Lee, 2004/12/22
- Re: Syntax Highlighting Latency in Emacs, jab3, 2004/12/22
- Re: Syntax Highlighting Latency in Emacs, Kevin Rodgers, 2004/12/27
Re: Syntax Highlighting Latency in Emacs, Pierre-Charles David, 2004/12/13
Re: Syntax Highlighting Latency in Emacs,
Kai Grossjohann <=
Message not available
Re: Syntax Highlighting Latency in Emacs, jab3, 2004/12/21