From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#17352: .emacs.desktop has become unportable between GUI and TTY. Date: Sun, 27 Apr 2014 14:29:44 +0200 Message-ID: References: <20140426182545.GB2944@acm.acm> <20140427090233.GA3109@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1398601883 16681 80.91.229.3 (27 Apr 2014 12:31:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2014 12:31:23 +0000 (UTC) Cc: 17352@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 27 14:31:16 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 1WeOEl-0002ul-Tm for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Apr 2014 14:31:16 +0200 Original-Received: from localhost ([::1]:39115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeOEl-00007T-J6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Apr 2014 08:31:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeOEe-000078-3Q for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 08:31:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WeOEZ-0001HK-DA for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 08:31:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeOEZ-0001HG-AA for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 08:31:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WeOEY-00069E-C2 for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 08:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Apr 2014 12:31: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.139860183023578 (code B ref 17352); Sun, 27 Apr 2014 12:31:02 +0000 Original-Received: (at 17352) by debbugs.gnu.org; 27 Apr 2014 12:30:30 +0000 Original-Received: from localhost ([127.0.0.1]:59644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeOE0-00068B-R9 for submit@debbugs.gnu.org; Sun, 27 Apr 2014 08:30:29 -0400 Original-Received: from mail-yh0-f46.google.com ([209.85.213.46]:48162) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeODy-000681-Qm for 17352@debbugs.gnu.org; Sun, 27 Apr 2014 08:30:27 -0400 Original-Received: by mail-yh0-f46.google.com with SMTP id c41so3925619yho.5 for <17352@debbugs.gnu.org>; Sun, 27 Apr 2014 05:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=qeBI+Rn+0SdFSI9VpXaLYwFZUhprs+Cha3/kAHtsl/0=; b=wGo482rsSf8eMeSfDu9z8XDW+UZi1CPMITJf0I9PgyQudu4om75KTuMp0BiJsdnlBp 4gxShXRV4opIK1T1gVpfy11aBae5EJdE3PTZAbvN6l53L/AetnCvc1ykO1PoeRJ6I0mu OoA/L/tzO81Uj5XXkyPqqGQA2lE4g9Wtqu7NuDNUvOaJYkgEhP+kRO5f8GDZTxPu0ZYu O1J/L4riCWzEw2+fjwr4JkZZ1MeUNWjx+UqkWga34rxC6bDe9ahxWj+/HaOLfzVpBHKj XwGTVUfhqdIlWAbuZ0CNaK+WY6bjqozzf3gKaIkHuOeuUCebg4RjOmodjwRV2eLjz1rm 8fvA== X-Received: by 10.236.120.66 with SMTP id o42mr29650886yhh.66.1398601825933; Sun, 27 Apr 2014 05:30:25 -0700 (PDT) Original-Received: by 10.170.127.66 with HTTP; Sun, 27 Apr 2014 05:29:44 -0700 (PDT) In-Reply-To: <20140427090233.GA3109@acm.acm> 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:88330 Archived-At: On Sun, Apr 27, 2014 at 11:02 AM, Alan Mackenzie wrote: I don't have access to a GNU/Linux system, so let's try to analyze the problem step by step from your side. > 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. After this, please tell me the value of desktop-saved-frameset in the .emacs.desktop file. > 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 Also after this step. > 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. I don't understand why should this happen. Could you also please try your recipe, but in the fist step, put this in your .emacs (setq desktop-restore-frames nil) (desktop-save-mode 1) instead, to make sure that all problems do indeed depend on frameset restoration. Thanks, J