unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Juanma Barranquero <lekktu@gmail.com>, 17352@debbugs.gnu.org
Subject: bug#17352: .emacs.desktop has become unportable between GUI and TTY.
Date: Sun, 27 Apr 2014 09:02:33 +0000	[thread overview]
Message-ID: <20140427090233.GA3109@acm.acm> (raw)
In-Reply-To: <20140426182545.GB2944@acm.acm>

>> 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 <RET>, 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).





  parent reply	other threads:[~2014-04-27  9:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-26 18:25 bug#17352: .emacs.desktop has become unportable between GUI and TTY Alan Mackenzie
2014-04-26 20:30 ` Juanma Barranquero
2014-04-27  9:02 ` Alan Mackenzie [this message]
2014-04-27 12:29   ` Juanma Barranquero
2014-04-27 13:53     ` Alan Mackenzie
2014-04-28 15:20       ` Juanma Barranquero
2014-04-30 18:28         ` Alan Mackenzie
2014-12-22 14:24 ` bug#17352: workaround Edmund Christian Herenz
2017-02-18 21:29 ` bug#17352: .emacs.desktop has become unportable between GUI and TTY Kaushal Modi
2017-09-02 13:03   ` Eli Zaretskii
2017-09-22 14:56     ` Eli Zaretskii
2017-09-29 17:06       ` Kaushal Modi
2017-09-29 18:12         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140427090233.GA3109@acm.acm \
    --to=acm@muc.de \
    --cc=17352@debbugs.gnu.org \
    --cc=lekktu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).