From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#13677: 24.2.50; workng on remote hosts with eshell is not very enjoyable Date: Wed, 13 Feb 2013 17:32:30 +0100 Message-ID: <87sj5041k1.fsf@gmx.de> References: <87txpkgjxk.fsf@fh-trier.de> <87y5ev998l.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360773225 3337 80.91.229.3 (13 Feb 2013 16:33:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Feb 2013 16:33:45 +0000 (UTC) Cc: Andreas Politz , 13677@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 13 17:34:05 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1U5fHY-0006JW-EO for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Feb 2013 17:34:04 +0100 Original-Received: from localhost ([::1]:43172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5fHF-00036Z-1F for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Feb 2013 11:33:45 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5fH7-00035Q-7T for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 11:33:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5fH0-0002LE-Kr for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 11:33:37 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5fH0-0002L6-H5 for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 11:33:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U5fHW-0003xw-3W for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 11:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Feb 2013 16:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13677 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 13677-submit@debbugs.gnu.org id=B13677.136077319415187 (code B ref 13677); Wed, 13 Feb 2013 16:34:02 +0000 Original-Received: (at 13677) by debbugs.gnu.org; 13 Feb 2013 16:33:14 +0000 Original-Received: from localhost ([127.0.0.1]:54396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5fGi-0003wt-VY for submit@debbugs.gnu.org; Wed, 13 Feb 2013 11:33:14 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:52075) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5fGg-0003wk-5O for 13677@debbugs.gnu.org; Wed, 13 Feb 2013 11:33:11 -0500 Original-Received: from mailout-de.gmx.net ([10.1.76.33]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0M0vpJ-1UuLZT2hLT-00vBzb for <13677@debbugs.gnu.org>; Wed, 13 Feb 2013 17:32:36 +0100 Original-Received: (qmail invoked by alias); 13 Feb 2013 16:32:36 -0000 Original-Received: from p57BB9809.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.9] by mail.gmx.net (mp033) with SMTP; 13 Feb 2013 17:32:36 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19RbjJTU3FRMgdYXbs9KA1qzGKAnkSfZa7jcBijKb Pq4RLeQ7vt9ja0 In-Reply-To: (Stefan Monnier's message of "Sun, 10 Feb 2013 20:54:32 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71182 Archived-At: Stefan Monnier writes: >>> Every stat command starts a new tramp process, which, in my case, takes >>> about 3-4 seconds to get going and renders eshell fairly useless for >>> this kind of work. > > I think you want to enable "ControlPersist" and/or related options in > your ~/.ssh/config, so that only the first ssh needs to authenticate and > subsequent ones just reuse the connection already setup by the first. I've committed a patch to Tramp to use ControlMaster=auto whenever possible. This might speed up remote processes a little bit, but most of the startup time is still spent in Tramp's hand-shaking. It would be good if we could have a mechanism to say eshell, whether an external command shall run synchronously or asynchronously. I doubt, that there will be a clever automatic detection. Eshell cannot know in advance, wheter an external command is interactive, or not. > Stefan Best regards, Michael.