all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jonathan Rockway <jon@jrock.us>
To: alinsoar@voila.fr
Cc: emacs-devel@gnu.org
Subject: Re: emacs in "screen".
Date: Fri, 05 Jun 2009 14:59:05 -0500	[thread overview]
Message-ID: <87k53qpi46.fsf@bar.jrock.us> (raw)
In-Reply-To: <3349475.2657871243596323209.JavaMail.www@wwinf4602> (A. Soare's message of "Fri, 29 May 2009 13:25:23 +0200 (CEST)")


I'm not sure if you got a reply to this on emacs-help (as I don't read
that list), but I thought I'd share my experience anyway.

* On Fri, May 29 2009, A. Soare wrote:
> I started emacs in screen that was running in tty1. DISPLAY was set,
> and emacs connected to X-server.
>
> I restarted emacs [ed: X?] using C-M-Backspace. Emacs continued to run
> in tty1, but it lost the connection to X-server, and stopped.
>
> Is there a possibility to restart X-server and afterwards to continue
> the same emacs session? Emacs should reconnect to the X-server in case
> that is sees that X-connection died.

Did you try make-frame-on-display?  Did it work?  Do you want emacs to
automatically try making a frame on a display if the display dies?

FWIW, I start emacs --daemon with daemontools when I log in, and then
get my X frame via "emacsclient -c".  Even after restarting X, I can
still get my same session back. The key is to either start emacs with
"emacs --daemon", or to start a "-nw" session in your screen session.
Then do a M-x server-start and connect to that emacs with emacsclient.

Also, you don't really need screen for this.  You can start an "emacs
--daemon" and then connect to that emacs session from the console with
"emacsclient -t".  emacs can do its own session management now, which
will even save you in the rare event that screen crashes.

(All this is contingent on having emacs23, of course.)

Regards,
Jonathan Rockway

--
print just => another => perl => hacker => if $,=$"




  reply	other threads:[~2009-06-05 19:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-29 11:25 emacs in "screen" A. Soare
2009-06-05 19:59 ` Jonathan Rockway [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-06-18  9:45 A. Soare

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

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

  git send-email \
    --in-reply-to=87k53qpi46.fsf@bar.jrock.us \
    --to=jon@jrock.us \
    --cc=alinsoar@voila.fr \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.