emacs-devel
[Top][All Lists]
Advanced

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

Re: Compilation mode very slow with large files


From: Stefan Monnier
Subject: Re: Compilation mode very slow with large files
Date: Sun, 02 Mar 2008 21:22:18 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> In Emacs 22.1.1 for Windows, when I open a large text file (15 MB) in
> fundamental mode and then switch to compilation mode, emacs hangs for
> ever, while the status bar displays "Fontifying <filename>...".

Yes.  This is expected.  Could explain why you're doing this?


        Stefan


PS: As for why this is; compilation-mode uses font-lock internally, so
turning off global-font-lock-mode doesn't help because compilation-mode
forces it back on anyway; furthermore compilation-mode needs font-lock
to work "top-to-bottom" rather than "first treat the part that's
displayed", so it disables jit-lock, thus causing the whole buffer to be
fontified at start.




reply via email to

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