From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#20247: 24.4; Emacs hangs at startup in desktop mode Date: Wed, 15 Apr 2015 14:03:50 -0400 Message-ID: References: <551D5EB90201036000390576_0_67183@p057> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1429121057 21360 80.91.229.3 (15 Apr 2015 18:04:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Apr 2015 18:04:17 +0000 (UTC) Cc: 20247@debbugs.gnu.org To: Richard Munitz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 15 20:04:10 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YiRfU-0007Iq-5B for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Apr 2015 20:04:08 +0200 Original-Received: from localhost ([::1]:33515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiRfS-0007q5-O2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Apr 2015 14:04:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiRfP-0007pM-5X for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2015 14:04:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiRfO-0001xm-2P for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2015 14:04:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiRfN-0001xi-Un for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2015 14:04:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YiRfN-0005fH-P6 for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2015 14:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Apr 2015 18:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20247 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20247-submit@debbugs.gnu.org id=B20247.142912103321758 (code B ref 20247); Wed, 15 Apr 2015 18:04:01 +0000 Original-Received: (at 20247) by debbugs.gnu.org; 15 Apr 2015 18:03:53 +0000 Original-Received: from localhost ([127.0.0.1]:57347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YiRfE-0005es-JE for submit@debbugs.gnu.org; Wed, 15 Apr 2015 14:03:52 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:40541 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YiRfD-0005ek-CQ for 20247@debbugs.gnu.org; Wed, 15 Apr 2015 14:03:51 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YiRfC-0007Mb-FI; Wed, 15 Apr 2015 14:03:50 -0400 X-Spook: Bruxelles JSOFC3IP Plame clones Dick Cheney AMW Taiwan X-Ran: 04vf|TXcIcWNgz#6]LY| (Richard Munitz's message of "Thu, 2 Apr 2015 15:22:33 -0000") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101569 Archived-At: "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