Mail Archives: djgpp/2009/07/24/11:58:24
> From: "Tomasz Zbro=BFek" <t DOT zbrozek AT upos DOT com DOT pl>
> Date: Fri, 24 Jul 2009 11:21:15 +0000 (UTC)
>=20
> I talk about emacs *.c files like malloc.c or buffer.c.
> When I start emacs and load first file (e.g malloc.c) it takes 2-3 =
seconds
> to be loaded with font-lock-mode enabled. But when I load second fi=
le=20
> (buffer.c which is even bigger) it takes only about 1 second. I not=
iced=20
> that only loading first file takes more time, next files load much =
faster.
This is normal: the first time you visit a .c file, Emacs loads the
CC-Mode package that supports editing C and C++ source files. CC-Mod=
e
is quite large, so it takes some time to load. You can see that by
evaluating "(featurep 'cc-mode)" before and after you visit the first
=2Ec file.
In previous versions of Emacs, loading Lisp libraries was always
announced in the echo area, so you'd see that and understand the
delay. But in Emacs 23, it was decided (against my objections, FWIW)
to suppress these messages, so now the user has no clue.
- Raw text -