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 13:53:37 +0000 Message-ID: <20140427135337.GC3091@acm.acm> References: <20140426182545.GB2944@acm.acm> <20140427090233.GA3109@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1398607105 19672 80.91.229.3 (27 Apr 2014 13:58:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2014 13:58:25 +0000 (UTC) Cc: 17352@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 27 15:58:17 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 1WePaz-0005aY-DI for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Apr 2014 15:58:17 +0200 Original-Received: from localhost ([::1]:39376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WePaz-0003QX-5J for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Apr 2014 09:58:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WePaq-0003QB-M1 for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 09:58:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WePak-0000yM-RX for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 09:58:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WePak-0000yI-OY for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 09:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WePak-0000R4-0z for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 09:58:02 -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 13:58:01 +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.13986070621633 (code B ref 17352); Sun, 27 Apr 2014 13:58:01 +0000 Original-Received: (at 17352) by debbugs.gnu.org; 27 Apr 2014 13:57:42 +0000 Original-Received: from localhost ([127.0.0.1]:60036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WePaP-0000QG-5I for submit@debbugs.gnu.org; Sun, 27 Apr 2014 09:57:42 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:34834 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WePaK-0000Q1-P8 for 17352@debbugs.gnu.org; Sun, 27 Apr 2014 09:57:38 -0400 Original-Received: (qmail 93969 invoked by uid 3782); 27 Apr 2014 13:57:35 -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 15:57:34 +0200 Original-Received: (qmail 4842 invoked by uid 1000); 27 Apr 2014 13:53:37 -0000 Content-Disposition: inline In-Reply-To: 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:88332 Archived-At: Hi, Juanma. On Sun, Apr 27, 2014 at 02:29:44PM +0200, Juanma Barranquero wrote: > 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. (setq desktop-saved-frameset [frameset 1 (21341 2076 453651 734000) (deskto= p . "206") "awk@acm.acm" nil nil ((((tty-type . "linux") (tty . "/dev/tty")= (display-type . color) (background-mode . dark) (cursor-color . "white") (= acm-no . 1) (frameset--id . "1C46-838B-D41A-31D0") (frameset--mini t) (fore= ground-color . "unspecified-fg") (background-color . "unspecified-bg") (fon= t . "tty") (height . 67) (width . 240) (modeline . t) (minibuffer . t) (uns= plittable) (menu-bar-lines . 1)) ((min-height . 4) (min-width . 10) (min-he= ight-ignore . 2) (min-width-ignore . 2) (min-height-safe . 1) (min-width-sa= fe . 2) (min-pixel-height . 4) (min-pixel-width . 10) (min-pixel-height-ign= ore . 2) (min-pixel-width-ignore . 2) (min-pixel-height-safe . 1) (min-pixe= l-width-safe . 2)) leaf (pixel-width . 240) (pixel-height . 65) (total-widt= h . 240) (total-height . 65) (normal-height . 1.0) (normal-width . 1.0) (bu= ffer "asdf2" (selected . t) (hscroll . 0) (fringes 0 0 nil) (margins nil) (= scroll-bars 0 0 t nil) (vscroll . 0) (dedicated) (point . 27) (start . 1)))= (((tty-type . "linux") (tty . "/dev/tty") (display-type . color) (backgrou= nd-mode . dark) (foreground-color . "unspecified-fg") (cursor-color . "whit= e") (acm-no . 0) (background-color . "unspecified-bg") (font . "tty") (heig= ht . 67) (width . 240) (modeline . t) (unsplittable) (menu-bar-lines . 1) (= frameset--id . "140A-8053-E59A-D89D") (frameset--mini t) (minibuffer . t)) = ((min-height . 4) (min-width . 10) (min-height-ignore . 2) (min-width-ignor= e . 2) (min-height-safe . 1) (min-width-safe . 2) (min-pixel-height . 4) (m= in-pixel-width . 10) (min-pixel-height-ignore . 2) (min-pixel-width-ignore = =2E 2) (min-pixel-height-safe . 1) (min-pixel-width-safe . 2)) leaf (pixel-= width . 240) (pixel-height . 65) (total-width . 240) (total-height . 65) (n= ormal-height . 1.0) (normal-width . 1.0) (buffer ".emacs" (selected) (hscro= ll . 0) (fringes 0 0 nil) (margins nil) (scroll-bars 0 0 t nil) (vscroll . = 0) (dedicated) (point . 1) (start . 1))))]) > > With the same userid, in X Windows, open a terminal and start Emacs (wi= th > > 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. (setq desktop-saved-frameset [frameset 1 (21341 2499 194045 27000) (desktop= . "206") "awk@acm.acm" nil nil ((((font-backend xft x) (font . "-unknown-D= ejaVu Sans Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1") (font-para= meter . "Monospace 11") (border-width . 0) (internal-border-width . 0) (rig= ht-divider-width . 0) (bottom-divider-width . 0) (vertical-scroll-bars . ri= ght) (foreground-color . "black") (background-color . "white") (mouse-color= . "black") (border-color . "black") (screen-gamma) (line-spacing) (left-fr= inge . 9) (right-fringe . 9) (scroll-bar-foreground) (scroll-bar-background= . "grey75") (menu-bar-lines . 1) (tool-bar-lines . 1) (title) (wait-for-wm= . t) (fullscreen) (tool-bar-position . top) (icon-type . t) (auto-raise) (= auto-lower) (cursor-type . box) (scroll-bar-width . 16) (alpha) (display-ty= pe . color) (background-mode . light) (cursor-color . "black") (visibility)= (acm-no . 2) (frameset--id . "6292-372A-DD78-D288") (frameset--mini t) (he= ight . 67) (width . 240) (modeline . t) (minibuffer . t) (unsplittable) (le= ft . 0) (top . 0) (icon-name) (display . ":0.0") (explicit-name)) ((min-hei= ght . 4) (min-width . 10) (min-height-ignore . 2) (min-width-ignore . 6) (m= in-height-safe . 1) (min-width-safe . 2) (min-pixel-height . 72) (min-pixel= -width . 90) (min-pixel-height-ignore . 36) (min-pixel-width-ignore . 54) (= min-pixel-height-safe . 18) (min-pixel-width-safe . 18)) leaf (pixel-width = =2E 2194) (pixel-height . 1188) (total-width . 243) (total-height . 66) (no= rmal-height . 1.0) (normal-width . 1.0) (buffer "*scratch*" (selected) (hsc= roll . 0) (fringes 9 9 nil) (margins nil) (scroll-bars 16 2 t nil) (vscroll= . 0) (dedicated) (point . 1) (start . 1))) (((font-backend xft x) (font . = "-unknown-DejaVu Sans Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1")= (font-parameter . "Monospace 11") (border-width . 0) (internal-border-widt= h . 0) (right-divider-width . 0) (bottom-divider-width . 0) (vertical-scrol= l-bars . right) (foreground-color . "black") (background-color . "white") (= mouse-color . "black") (border-color . "black") (screen-gamma) (line-spacin= g) (left-fringe . 9) (right-fringe . 9) (scroll-bar-foreground) (scroll-bar= -background . "grey75") (menu-bar-lines . 1) (tool-bar-lines . 1) (title) (= wait-for-wm . t) (fullscreen) (tool-bar-position . top) (icon-type . t) (au= to-raise) (auto-lower) (cursor-type . box) (scroll-bar-width . 16) (alpha) = (display-type . color) (background-mode . light) (cursor-color . "black") (= visibility) (acm-no . 1) (frameset--id . "A262-9F94-6E27-1BB1") (frameset--= mini t) (height . 67) (width . 240) (modeline . t) (minibuffer . t) (unspli= ttable) (left . 0) (top . 0) (icon-name) (display . ":0.0") (explicit-name)= ) ((min-height . 4) (min-width . 10) (min-height-ignore . 2) (min-width-ign= ore . 6) (min-height-safe . 1) (min-width-safe . 2) (min-pixel-height . 72)= (min-pixel-width . 90) (min-pixel-height-ignore . 36) (min-pixel-width-ign= ore . 54) (min-pixel-height-safe . 18) (min-pixel-width-safe . 18)) leaf (p= ixel-width . 2194) (pixel-height . 1188) (total-width . 243) (total-height = =2E 66) (normal-height . 1.0) (normal-width . 1.0) (buffer "*scratch*" (sel= ected) (hscroll . 0) (fringes 9 9 nil) (margins nil) (scroll-bars 16 2 t ni= l) (vscroll . 0) (dedicated) (point . 1) (start . 1))) (((font-backend xft = x) (font . "-unknown-DejaVu Sans Mono-normal-normal-normal-*-15-*-*-*-m-0-i= so10646-1") (font-parameter . "Monospace 11") (border-width . 0) (internal-= border-width . 0) (right-divider-width . 0) (bottom-divider-width . 0) (ver= tical-scroll-bars . right) (foreground-color . "black") (background-color .= "white") (mouse-color . "black") (border-color . "black") (screen-gamma) (= line-spacing) (left-fringe . 9) (right-fringe . 9) (scroll-bar-foreground) = (scroll-bar-background . "grey75") (menu-bar-lines . 1) (tool-bar-lines . 1= ) (title) (wait-for-wm . t) (fullscreen) (tool-bar-position . top) (icon-ty= pe . t) (auto-raise) (auto-lower) (cursor-type . box) (scroll-bar-width . 1= 6) (alpha) (horizontal-scroll-bars . t) (display-type . color) (background-= mode . light) (cursor-color . "black") (sticky) (environment) (acm-no . 0) = (frameset--id . "1619-8E5C-153E-03AD") (frameset--mini t . t) (height . 35)= (width . 80) (modeline . t) (minibuffer . t) (unsplittable) (left . 0) (to= p . 31) (icon-name) (visibility . t) (display . ":0.0") (explicit-name)) ((= min-height . 8) (min-width . 10) (min-height-ignore . 4) (min-width-ignore = =2E 6) (min-height-safe . 2) (min-width-safe . 2) (min-pixel-height . 144) = (min-pixel-width . 90) (min-pixel-height-ignore . 72) (min-pixel-width-igno= re . 54) (min-pixel-height-safe . 36) (min-pixel-width-safe . 18)) vc (pixe= l-width . 754) (pixel-height . 612) (total-width . 83) (total-height . 34) = (normal-height . 1.0) (normal-width . 1.0) (combination-limit) (leaf (pixel= -width . 754) (pixel-height . 306) (total-width . 83) (total-height . 17) (= normal-height . 0.5) (normal-width . 1.0) (buffer ".emacs" (selected . t) (= hscroll . 0) (fringes 9 9 nil) (margins nil) (scroll-bars 16 2 t nil) (vscr= oll . 0) (dedicated) (point . 1) (start . 1))) (leaf (last . t) (pixel-widt= h . 754) (pixel-height . 306) (total-width . 83) (total-height . 17) (norma= l-height . 0.5) (normal-width . 1.0) (buffer "*Warnings*" (selected) (hscro= ll . 0) (fringes 9 9 nil) (margins nil) (scroll-bars 16 2 t nil) (vscroll .= 0) (dedicated) (point . 55) (start . 1)))))]) > > 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-B= US daemon: > > Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 > > , the pair being repeated 9 times (for a total of twenty messages). Ea= ch > > one started directly below where the previous one ended (as though a Un= ix > > 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. With that setting, the problems do indeed disappear. So it would appear the frameset(s?) is/are the problem. > Thanks, > J --=20 Alan Mackenzie (Nuremberg, Germany).