|
|
A year or so ago I had a problem that might match this description. I
was using set-default-font in my .emacs, and getting a weird delay.
Running strace just showed Emacs sitting there doing nothing. The
relevant bug report is at
https://launchpad.net/ubuntu/+source/emacs21/+bug/23005/+index.
If that's what you're getting, you might try the following in
your .emacs:
(when (equal window-system 'x)
(modify-frame-parameters nil '((wait-for-wm . nil)))
(push '(wait-for-wm . nil) default-frame-alist))
Alternatively, I've also had problems with Ubuntu (Gnome desktop)
starting apps in general if there's a DNS problem. For example, if
the network connection to the router is fine, but the router gets no
response from the upstream DNS at the ISP, then it can take 30-45
seconds to launch any thing, from an XTerm to Emacs. The system just
sits there apparently doing nothing. This seems to be caused by the
system waiting for a DNS timeout when it looks up its own hostname.
(I don't know why it would do that, but...). I haven't pinned down
exactly how to fix this, but /etc/hosts and local DNS servers (e.g.
dnsmasq) are good things to fiddle with. You can tell if this problem
is happening by running Wireshark on your system and watching for DNS
traffic when you launch applications. Apologies for the lack of
detail in places there - it's been a while since I've had any problems
with this.
Regards,
Paul.
|
|