[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs load time, font selection delay.
From: |
Johan Bockgård |
Subject: |
Re: Emacs load time, font selection delay. |
Date: |
Tue, 21 Aug 2007 12:13:09 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) |
"Dave Pawson" <dave.pawson@gmail.com> writes:
> The load time for emacs has risen sharply since ( I think) 22.1 upgrade).
>
> Today I stripped out my .emacs and started again.
>
> The culprit seems to be my font selection?
>
> (set-default-font
> "-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1") takes
> about 12 seconds to load
Does this help?
** Emacs pauses for several seconds when changing the default font.
This has been reported for fvwm 2.2.5 and the window manager of KDE
2.1. The reason for the pause is Xt waiting for a ConfigureNotify
event from the window manager, which the window manager doesn't send.
Xt stops waiting after a default timeout of usually 5 seconds.
A workaround for this is to add something like
emacs.waitForWM: false
to your X resources. Alternatively, add `(wait-for-wm . nil)' to a
frame's parameter list, like this:
(modify-frame-parameters nil '((wait-for-wm . nil)))
(this should go into your `.emacs' file).
,----[ C-h k C-h C-e ]
| C-h C-e runs the command view-emacs-problems
| which is an interactive compiled Lisp function in `help.el'.
| It is bound to C-h C-e, <f1> C-e, <help> C-e, <menu-bar> <help-menu>
| <emacs-problems>.
| (view-emacs-problems)
|
| Display info on known problems with Emacs and possible workarounds.
`----
--
Johan Bockgård