Tohiko
Tohiko

Reputation: 1982

"Emacs -Q" slow startup, sometimes

I have compiled Emacs pretest 24.3.93.1 from source and it runs fine most of the time. However, if I close Emacs after some time and then try to start it again, it just shows an unresponsive, blank white window and I have to wait more than 15 minutes for it to become responsive. While waiting, I am sure that my init files are not being run. I also tried running 'emacs -Q' with similar results.

Moreover, I tried 'emacs -Q -nw' and I just got a blank unresponsive terminal. Again, I had to wait quite some time for emacs to become responsive again. Any idea how I can troubleshoot this problem?

Edit: For compiling, I just downloaded the source and ran 'configure' and 'make' with no arguments. I use Ubuntu 14.04.

Upvotes: 0

Views: 189

Answers (2)

Jorgen Schäfer
Jorgen Schäfer

Reputation: 1216

Run strace emacs -Q and see what it is doing when it is hanging.

A typical problem that looks like this would be that Emacs is trying to resolve the local host name, and due to some config error this request to the name server times out. If this sounds plausible, you can check if hostname -f can be found in /etc/hosts, for example.

Upvotes: 2

Adobe
Adobe

Reputation: 13487

You can try to use ppa for a daily emacs builds:

sudo apt-get purge emacs emacs-snapshot-common emacs-snapshot-bin-common emacs-snapshot emacs-snapshot-el emacs-snapshot-gtk emacs23 emacs23-bin-common emacs23-common emacs23-el emacs23-nox emacs23-lucid auctex apel emacs24 emacs24-bin-common emacs24-common emacs24-common-non-dfsg emacs24-el
sudo add-apt-repository ppa:cassou/emacs
sudo apt-get update
sudo apt-get install emacs-snapshot-el emacs-snapshot-gtk emacs-snapshot

Upvotes: 0

Related Questions