GNU bug report logs - #20247
24.4; Emacs hangs at startup in desktop mode

Previous Next

Package: emacs;

Reported by: Richard Munitz <rmunitz1 <at> bloomberg.net>

Date: Thu, 2 Apr 2015 15:23:01 UTC

Severity: normal

Found in version 24.4

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Richard Munitz <rmunitz1 <at> bloomberg.net>
Cc: 20247 <at> debbugs.gnu.org
Subject: bug#20247: 24.4; Emacs hangs at startup in desktop mode
Date: Wed, 15 Apr 2015 14:03:50 -0400
"Richard Munitz (BLOOMBERG/ 731 LEX)" wrote:

> Some more information. This problem could be related to tmux. The last
> time the hang occurred I noticed that my environment settings had
> different values for XTERM and DISPLAY. Currently they look like the
> below, but on that day they were different. Unfortunately, I don't
> remember which was which. But the .emacs.desktop file had one of the
> two values and it hung. When I edited the file and changed it to the
> other of the two values, it started flawlessly.
> XTERM=/usr/bin/X11/xterm -ls -sb -sl 4000 -display sundev28:37.0
> DISPLAY=sundev28:37.0
>
> Of course I don't understand the internals, but I don't understand why
> emacs starts up and tries to use a saved "display" value at all? Why
> doesn't it just always use the display value defined in the current
> shell in which I am invoking emacs? Perhaps this is sometimes
> desirable, but is there a setting I can use to make emacs ignore this
> value saved in the desktop file and always use the value from the
> current environment?


Maybe setting desktop-restore-in-current-display to t will help?

I suspect that in that variable's doc:

   If nil, restores frames into their original displays (if possible).

the "(if possible)" part is going to be tricky to get right.

See also http://debbugs.gnu.org/17693#40




This bug report was last modified 9 years and 86 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.