From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Justin Lilly Newsgroups: gmane.emacs.devel Subject: Re: screen & emacs Date: Wed, 2 Feb 2011 23:58:18 -0500 Message-ID: References: <87k4hh4thk.fsf@sysu76.podval.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1296709135 6414 80.91.229.12 (3 Feb 2011 04:58:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Feb 2011 04:58:55 +0000 (UTC) To: sds@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 03 05:58:51 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PkrHL-0002TS-P4 for ged-emacs-devel@m.gmane.org; Thu, 03 Feb 2011 05:58:47 +0100 Original-Received: from localhost ([127.0.0.1]:35720 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkrHL-00012W-5i for ged-emacs-devel@m.gmane.org; Wed, 02 Feb 2011 23:58:47 -0500 Original-Received: from [140.186.70.92] (port=38253 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkrHH-00012L-1S for emacs-devel@gnu.org; Wed, 02 Feb 2011 23:58:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkrHF-0001bU-Uv for emacs-devel@gnu.org; Wed, 02 Feb 2011 23:58:42 -0500 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:47367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PkrHE-0001aV-6P; Wed, 02 Feb 2011 23:58:40 -0500 Original-Received: by iwc10 with SMTP id 10so823153iwc.0 for ; Wed, 02 Feb 2011 20:58:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:content-type; bh=qEZU+zW0zOD9hMfrysZnWKdgrCQMZEsh9x/9N1rJmiQ=; b=LUN525RGcwsgm66TjjemvoW0qY6Iik6jDinJWGviPg2vkuCAETe8xMFfQ8wIppLGd9 Ud4SJQcHJjndM8SvtGsNLp1ceRkv+Q6glpEdalP3bLcl0rTYVRdToUbTvLQvE5LBl5aM M7Ie1jM5Mjkw5Frcirb26mYfvOsmEZ7zhNN3o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; b=KtljrR1ogj5bVNZ1eVIOr02DJGDrsIcfF25XtB5Gle1kalo2wRfP3KM+VsksfZPZRB MjRviy1pqbpAPvB+p1VCHZOxmpCfoNRfSNrRiWV+qQaTtNm+QeeybLfp9e8nX+k06m9S Fy8KVB9kmkm4wZYFjWzJFkqhZiHZaSnQ8h1OU= Original-Received: by 10.42.170.133 with SMTP id f5mr12277364icz.243.1296709118756; Wed, 02 Feb 2011 20:58:38 -0800 (PST) Original-Received: by 10.42.218.138 with HTTP; Wed, 2 Feb 2011 20:58:18 -0800 (PST) In-Reply-To: <87k4hh4thk.fsf@sysu76.podval.org> X-Google-Sender-Auth: -EEq65w8OaMcbdIRelie-2xExNk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135495 Archived-At: It seems as if you should be able to run a daemonized emacs. Multiple clients can then connect to it without stealing each other's connection. Then again, it may not work like that, but it is at least something to look at. -justin On Wed, Feb 2, 2011 at 11:44 PM, Sam Steingold wrote: > I use gnu screen on a server S to which I connect using ssh from various > client boxes (e.g., a windows desktop D and a linux laptop L). > This is great: I always see the same shell sessions on S regardless > where I connect from. > There is only one problem: I run ssh with ForwardX11=yes, so when I > start emacs on S, I see the usual GUI window on D or L (I still have to > figure out the right setting for DISPLAY for some reason) which is > precisely what I want. > Alas, when I open an emacs on S while connected from D and then go over > to L and ssh to S, then the screen session gets stolen from D and > appears on L, __BUT__ the emacs window (again, emacs is running on S, > but the window is shown on D) stays on D and does not go over to L > automagically. > Is there a way around this (except for "emacs -nw")? > > PS. One thing I hate about screen is that it does not terminate > "gracefully" on reboot: it is killed so the bash histories of various > widows are not saved... > > -- > Sam Steingold (http://sds.podval.org/) on Ubuntu 10.04 (lucid) > http://www.memritv.org http://dhimmi.com http://thereligionofpeace.com > http://pmw.org.il http://mideasttruth.com > MS: Brain off-line, please wait. > > >