From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#17352: .emacs.desktop has become unportable between GUI and TTY. Date: Sun, 27 Apr 2014 09:02:33 +0000 Message-ID: <20140427090233.GA3109@acm.acm> References: <20140426182545.GB2944@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1398589671 28675 80.91.229.3 (27 Apr 2014 09:07:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2014 09:07:51 +0000 (UTC) To: Juanma Barranquero , 17352@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 27 11:07:44 2014 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 1WeL3n-0003Ii-Ri for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Apr 2014 11:07:43 +0200 Original-Received: from localhost ([::1]:38503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeL3n-0001no-CP for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Apr 2014 05:07:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeL3H-0001DM-0m for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 05:07:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WeL39-0002CV-H4 for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 05:07:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeL39-0002CP-Cy for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 05:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WeL38-0007RH-UW for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 05:07:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Apr 2014 09:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17352 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17352-submit@debbugs.gnu.org id=B17352.139858960128552 (code B ref 17352); Sun, 27 Apr 2014 09:07:02 +0000 Original-Received: (at 17352) by debbugs.gnu.org; 27 Apr 2014 09:06:41 +0000 Original-Received: from localhost ([127.0.0.1]:59597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeL2n-0007QP-9M for submit@debbugs.gnu.org; Sun, 27 Apr 2014 05:06:41 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:38293 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeL2k-0007QD-Ry for 17352@debbugs.gnu.org; Sun, 27 Apr 2014 05:06:39 -0400 Original-Received: (qmail 67798 invoked by uid 3782); 27 Apr 2014 09:06:37 -0000 Original-Received: from acm.muc.de (pD9518658.dip0.t-ipconnect.de [217.81.134.88]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 27 Apr 2014 11:06:35 +0200 Original-Received: (qmail 3594 invoked by uid 1000); 27 Apr 2014 09:02:33 -0000 Content-Disposition: inline In-Reply-To: <20140426182545.GB2944@acm.acm> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:88327 Archived-At: >> This lack of portability is a bug. Sharing a desktop file between GUI >> and TTY sessions is the sort of thing Emacs should be able to do without >> batting an eylid. >At least in theory, saving&restoring the frameset already takes care >of this. If it is failing, that's a bug. >If you have a repeatable way to trigger this problem, please report it >here so wen can work together to fix it. With a throwaway userid, in a Linux tty (virtual terminal), start Emacs and create a ~/.emacs containing the single line (desktop-save-mode 1) Evaluate this form with C-x C-e. With .emacs in the current window, visit a new file in a new frame with C-x 5 C-f asdf , put some random text into the new buffer and save it with C-x C-s. Exit Emacs with C-x C-c. With the same userid, in X Windows, open a terminal and start Emacs (with no command line arguments). This produces the aforementioned error messages: Error (frameset): Font `tty' is not defined [2 times] Warning (frameset): Attempt to delete the sole visible or iconified frame . Only one frame is currently open. Now close this Emacs session with C-x C-c, and attempt to start another session on the tty. In the *scratch* buffer (apparently) appear the following error messages: (emacs:3488): GConf-WARNING **: Client failed to connect to the D-BUS daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 , the pair being repeated 9 times (for a total of twenty messages). Each one started directly below where the previous one ended (as though a Unix file was being displayed on a device expecting MS-DOS line terminators). This Emacs is unusable, some control characters not being interpreted. For example, on typing M-x, "^[x" gets displayed in the minibuffer region, and the minibuffer is not active. C-x C-c works, however. > J -- Alan Mackenzie (Nuremberg, Germany).