From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Tramp 2.0 -> 2.1 migration woes Date: Mon, 28 Jan 2008 16:32:40 +0100 Message-ID: References: <20080127040051.GA16241@Clio.twb.ath.cx> <87sl0jxu4g.fsf@gmx.de> <20080128021310.GA3075@Clio.twb.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201534369 23551 80.91.229.12 (28 Jan 2008 15:32:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jan 2008 15:32:49 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, rfrancoise@debian.org To: "Trent W. Buck" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 28 16:33:09 2008 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.50) id 1JJVyn-0007nw-Dz for ged-emacs-devel@m.gmane.org; Mon, 28 Jan 2008 16:33:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJVyM-0008UA-HK for ged-emacs-devel@m.gmane.org; Mon, 28 Jan 2008 10:32:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJVyG-0008To-TF for emacs-devel@gnu.org; Mon, 28 Jan 2008 10:32:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJVyF-0008SB-7H for emacs-devel@gnu.org; Mon, 28 Jan 2008 10:32:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJVyF-0008S2-4R for emacs-devel@gnu.org; Mon, 28 Jan 2008 10:32:27 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJVyF-00009J-E7 for emacs-devel@gnu.org; Mon, 28 Jan 2008 10:32:27 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JJVyE-00018Z-Is for emacs-pretest-bug@gnu.org; Mon, 28 Jan 2008 10:32:26 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JJVyB-00008D-HT for emacs-pretest-bug@gnu.org; Mon, 28 Jan 2008 10:32:26 -0500 Original-Received: from mailrelay1.alcatel.de ([194.113.59.95]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JJVyB-00007M-0m for emacs-pretest-bug@gnu.org; Mon, 28 Jan 2008 10:32:23 -0500 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay1.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id m0SFVlCO029727; Mon, 28 Jan 2008 16:31:47 +0100 In-Reply-To: <20080128021310.GA3075@Clio.twb.ath.cx> (Trent W. Buck's message of "Mon, 28 Jan 2008 13:13:16 +1100") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.57 on 149.204.45.72 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:87711 gmane.emacs.pretest.bugs:20790 Archived-At: "Trent W. Buck" writes: >> I also remember some problems in implementation of all these Tramp >> 2.1 optimizations for the Tramp 2.0 multi-hop paths. > > Would it be correct to say that the explicit multi: method was removed > because other TRAMP changes broke it, and that it will be brought back > once it's fixed? Or is it gone for good? I would (obviously) prefer > the former. Nope. The internal data structures have changed significantly, there is no easy way to get this syntax back. And I'm also not convinced that this shall be the way to go. >> On the Tramp todo list, there is the item >> >> ;; * WIBNI there was an interactive command prompting for Tramp >> ;; method, hostname, username and filename and translates the user >> ;; input into the correct filename syntax (depending on the Emacs >> ;; flavor) (Reiner Steib) >> >> This could be expanded to multi-hops, where it seems to be even more >> useful. I'll try to find the time to work on it (Threat: I will exploit >> *you* as tester for this functionality!) > > Well, personally I prefer a single complex prompt like > > What path? /multi:ssh:foo:sudo:: > > to a long series of simple prompts > > What method? ssh > What user [twb]? RET > What host? foo > Done [Y/n]? n > What method? sudo > What user [root]? RET > Done [Y/n]? RET > Filename? /etc/ssh/sshd_config > > mainly because I find it easier to copy/paste or M-p > (previous-history-element) a single prompt than to do it repeatedly > for several prompts. Hmm. Then we have conflicting requirements. Reiner's intention was to guide the novice user ... maybe we need indeed two kinds of interactive guidance. In your case, something like this could be done: Where do you want to go? /sudo:leek: RET Which proxy is in front of it? /ssh:twb@leek: RET Which proxy is in front of it? /ssh:twb@foo: RET Which proxy is in front of it? RET Do you want to add it permanently [Y/n]? n RET => Added to `tramp-default-proxies-alist' temporarily: (("leek" "root" "/ssh:twb@leek:") ("leek" "twb" "/ssh:twb@foo:")) Best regards, Michael.