unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Setting default fonts slows down emacs
@ 2006-10-29 16:47 Johs
  2006-10-29 23:53 ` Johan Bockgård
  0 siblings, 1 reply; 3+ messages in thread
From: Johs @ 2006-10-29 16:47 UTC (permalink / raw)


I have this in my .emacs file:

(set-default-font "-adobe-courier-medium-r-normal-*-14-*-*-*-*-*-*-*")

But it take 10-15 seconds longer than normal to start up because of this
line.

Why does emacs performance gets reduced when setting another default font?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting default fonts slows down emacs
  2006-10-29 16:47 Setting default fonts slows down emacs Johs
@ 2006-10-29 23:53 ` Johan Bockgård
  2006-11-01 13:40   ` Johs
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Bockgård @ 2006-10-29 23:53 UTC (permalink / raw)


Johs <asdasd@asd.com> writes:

> I have this in my .emacs file:
>
> (set-default-font "-adobe-courier-medium-r-normal-*-14-*-*-*-*-*-*-*")
>
> But it take 10-15 seconds longer than normal to start up because of
> this line.
>
> Why does emacs performance gets reduced when setting another default
> font?

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).
`----

(from etc/PROBLEMS)

-- 
Johan Bockgård

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting default fonts slows down emacs
  2006-10-29 23:53 ` Johan Bockgård
@ 2006-11-01 13:40   ` Johs
  0 siblings, 0 replies; 3+ messages in thread
From: Johs @ 2006-11-01 13:40 UTC (permalink / raw)


Johan Bockgård wrote:

> Johs <asdasd@asd.com> writes:
> 
>> I have this in my .emacs file:
>>
>> (set-default-font "-adobe-courier-medium-r-normal-*-14-*-*-*-*-*-*-*")
>>
>> But it take 10-15 seconds longer than normal to start up because of
>> this line.
>>
>> Why does emacs performance gets reduced when setting another default
>> font?
> 
> 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).
> `----
> 
> (from etc/PROBLEMS)
> 


Thanks that helped. Though it needs to be places as the first line in
my .emacs file to work.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-01 13:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-29 16:47 Setting default fonts slows down emacs Johs
2006-10-29 23:53 ` Johan Bockgård
2006-11-01 13:40   ` Johs

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).