unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: bojohan+news@dd.chalmers.se (Johan Bockgård)
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs load time, font selection delay.
Date: Tue, 21 Aug 2007 12:13:09 +0200	[thread overview]
Message-ID: <yoijsl6dgpqi.fsf@gamma02.me.chalmers.se> (raw)
In-Reply-To: mailman.5034.1187689620.32220.help-gnu-emacs@gnu.org

"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

       reply	other threads:[~2007-08-21 10:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.5034.1187689620.32220.help-gnu-emacs@gnu.org>
2007-08-21 10:13 ` Johan Bockgård [this message]
2007-08-21 10:58   ` Emacs load time, font selection delay Dave Pawson
2007-08-21  9:46 Dave Pawson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yoijsl6dgpqi.fsf@gamma02.me.chalmers.se \
    --to=bojohan+news@dd.chalmers.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).