all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs in "screen".
@ 2009-05-29 11:25 A. Soare
  2009-06-05 19:59 ` Jonathan Rockway
  0 siblings, 1 reply; 3+ messages in thread
From: A. Soare @ 2009-05-29 11:25 UTC (permalink / raw
  To: Emacs   Help  [help-gnu-emacs]; +Cc: Emacs   Dev  [emacs-devel]

I started emacs in screen that was running in tty1. DISPLAY was set, and emacs connected to X-server.

I restarted emacs 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.



Alin.






____________________________________________________

Découvrez le nouveau Voila.fr et apprenez à maîtriser le web 2.0 sur http://voila.fr






^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: emacs in "screen".
@ 2009-06-18  9:45 A. Soare
  0 siblings, 0 replies; 3+ messages in thread
From: A. Soare @ 2009-06-18  9:45 UTC (permalink / raw
  To: Jonathan Rockway; +Cc: Emacs   Dev  [emacs-devel]


Thanks for your answer.
I am sorry for my late answer.


> 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?


make-frame-on-display is exactly what I want. When I start emacs from ttyx, then make-frame-on-display opens a frame in X, and when that frame closes, the tty session survive and one can run again make-frame-on-display.

Thank you.


Best regards,


Alin.


> 
> 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.
> 




____________________________________________________

Découvrez Cocoon et Catpower dans notre sélection musicale folk sur Voila http://musiline.voila.fr






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-18  9:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-29 11:25 emacs in "screen" A. Soare
2009-06-05 19:59 ` Jonathan Rockway
  -- strict thread matches above, loose matches on Subject: below --
2009-06-18  9:45 A. Soare

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.