From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: Emacs load time, font selection delay. Date: Tue, 21 Aug 2007 12:13:09 +0200 Organization: Chalmers University of Technology, Sweden Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1187692851 10600 80.91.229.12 (21 Aug 2007 10:40:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2007 10:40:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 21 12:40:49 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1INRAG-0006dB-FG for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Aug 2007 12:40:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INRAG-0000ti-3M for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Aug 2007 06:40:48 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!newsfeed.sunet.se!news01.sunet.se!129.16.222.141.MISMATCH!gide.ita.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: gamma02.me.chalmers.se Original-X-Trace: gide.ita.chalmers.se 1187691189 15651 129.16.50.72 (21 Aug 2007 10:13:09 GMT) Original-X-Complaints-To: usenet@gide.ita.chalmers.se Original-NNTP-Posting-Date: Tue, 21 Aug 2007 10:13:09 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:3Tu6CAekiOepriSGi/Nmt38CWCU= Original-Xref: shelby.stanford.edu gnu.emacs.help:151143 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46716 Archived-At: "Dave Pawson" 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, C-e, C-e, | . | (view-emacs-problems) | | Display info on known problems with Emacs and possible workarounds. `---- -- Johan Bockgård