I've been editing a large file a lot recently;
org.opentoken.stephe-1/wisi/wisi-output_ada_emacs.adb.

Parsing in this file is noticeably slow (0.8 seconds), so the display
does not keep up with my normal typing speed. The problem is font-lock
tries to refontify immediately after I type a character.

One workaround is to set jit-lock-defer-time to non-nil:

--  Local Variables:
--  jit-lock-defer-time: 0.5
--  End:

That way, font lock only kicks in after I stopped typing.

For some reason, jit-lock-defer-time is not marked as a safe local
variable, so you also need this in your ~/.emacs:

(put 'jit-lock-defer-time 'safe-local-variable 'numberp)


The reason I'm working on this file is for the compiled Ada parser, to
speed up parsing. It's comming along nicely; I have an Emacs-loadable
dll containing the OpenToken parser using the elisp lexer. The parser
tests in ada-mode run but fail, so I'm still working on bugs in the
Emacs/Ada interface, but I should have timing results soon.

I'm sure I'll still have to speed up the parser, but I have some solid
leads to persue on that.

-- 
-- Stephe

_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to