From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: tramp:sshx:(screen|tmux) Date: Wed, 10 Sep 2014 15:55:53 +0200 Message-ID: <87mwa7d1g6.fsf@gmx.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410357523 12951 80.91.229.3 (10 Sep 2014 13:58:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2014 13:58:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Sam Steingold Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 10 15:58:35 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XRiPZ-0003sq-3F for ged-emacs-devel@m.gmane.org; Wed, 10 Sep 2014 15:58:17 +0200 Original-Received: from localhost ([::1]:56552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRiPY-0002HG-PZ for ged-emacs-devel@m.gmane.org; Wed, 10 Sep 2014 09:58:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRiNT-0007th-Ak for emacs-devel@gnu.org; Wed, 10 Sep 2014 09:56:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRiNL-00052W-Me for emacs-devel@gnu.org; Wed, 10 Sep 2014 09:56:07 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:49677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRiNL-000522-EQ; Wed, 10 Sep 2014 09:55:59 -0400 Original-Received: from detlef.gmx.de ([93.202.49.224]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MSMw7-1Xv67L3Urr-00TYBw; Wed, 10 Sep 2014 15:55:57 +0200 In-Reply-To: (Sam Steingold's message of "Tue, 09 Sep 2014 14:38:43 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-Provags-ID: V03:K0:h2UBWojk+E8sFn679JEZITuh7OXUMK7JSjdcj23J0D6emBUZUwn B9f+0Pc3T21Tj9RBgTuJrT43Kdpf8GNuSBqgHov8qr+ljPCknN3uABkJZJ7EyIHfabxjwjf M58uN/m9QOGx+uAcdCpItoVAzxHUPk0D7SQ13/qulyHOIvkBaxpRIJ3vjxZQDZFZB7BsGjh XLqeF0r/2AlcvGreJRBjQ== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174145 Archived-At: Sam Steingold writes: > Hi, Hi Sam, > I wonder if it is possible to add a "nohup/screen/tmux" method which > would create a remote screen/tmux session or reconnect to it if it > already exists. > The idea is that some interactions (e.g., an interactive R session) is > too expensive to restore after a crash caused by a disconnect. A while ago, I've played with mosh(*) as Tramp connection method. It is designed exactly for your case, supporting reconnection of lost sessions. I failed, because mosh is designed to draw on a screen, which is not what Tramp needs in a connection buffer. Your idea to reconnect to an existing screen / tmux session would suffer from the same problem I guess. At least I'm not aware how to support them in an Emacs buffer. (*): https://mosh.mit.edu/ > Thanks. Best regards, Michael.