After using emacs routinely for a long time, today I suddenly have problems starting emacs: When I type emacs
in a terminal window, nothing at all happens, emacs seems to be running, but does not display anything, does not open a window, and does not react to any input. This phase takes 30 seconds (nearly exactly!), and then emacs suddenly starts up. Restarting the machine made emacs work again once, but 2 minutes later the problem was back again. Details are below. My questions: How can I make emacs start again without a 30 second delay? How can I debug such problems?
Operating System: Mac OS X, version 10.11.6 (on a MacBook Air)
Emacs version: The problem occurs both with emacs 22.1.1 (system provided) and emacs 24.5.1 (installed via homebrew). I can interrupt emacs 24.5.1 (in the non-working, hanging state) using Ctrl-C. Emacs 22.1.1 seems not to react to Ctrl-C, but if I press Ctrl-G twice it suspends itself.
Illustration of the problem:
>>> time emacs --batch
real 0m30.039s
user 0m0.013s
sys 0m0.010s
Things that still work:
emacs --version
andemacs --help
work for both versionsThe computer seems otherwise happy, for example I still can start
vi
Things that don't work ("hangs" below means that the 30 second wait is present):
emacs -Q
hangs, as doesemacs -q
emacs -nw
hangsemacs --debug-init
hangsEmacs seems to not complain about invalid command line options, for example
emacs --tri-tra-tralala
just hangs with no messageThe problem is not fixed by changing terminal emulators: emacs hangs both using the system-provided
Terminal
application, and usingiTerm2
.