From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Trent W. Buck" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Tramp 2.0 -> 2.1 migration woes Date: Mon, 28 Jan 2008 13:13:16 +1100 Message-ID: <20080128021310.GA3075@Clio.twb.ath.cx> References: <20080127040051.GA16241@Clio.twb.ath.cx> <87sl0jxu4g.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1018763382==" X-Trace: ger.gmane.org 1201486419 16022 80.91.229.12 (28 Jan 2008 02:13:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jan 2008 02:13:39 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, rfrancoise@debian.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 28 03:13:58 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 1JJJVV-0002KZ-Dq for ged-emacs-devel@m.gmane.org; Mon, 28 Jan 2008 03:13:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJJV4-0005CL-E7 for ged-emacs-devel@m.gmane.org; Sun, 27 Jan 2008 21:13:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJJUz-000596-IY for emacs-devel@gnu.org; Sun, 27 Jan 2008 21:13:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJJUy-00057Z-Fr for emacs-devel@gnu.org; Sun, 27 Jan 2008 21:13:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJJUy-00057S-Di for emacs-devel@gnu.org; Sun, 27 Jan 2008 21:13:24 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJJUy-0007t5-Dn for emacs-devel@gnu.org; Sun, 27 Jan 2008 21:13:24 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JJJUx-0001Yj-W0 for emacs-pretest-bug@gnu.org; Sun, 27 Jan 2008 21:13:24 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JJJUu-0007sK-W1 for emacs-pretest-bug@gnu.org; Sun, 27 Jan 2008 21:13:24 -0500 Original-Received: from ipmail01.adl6.internode.on.net ([203.16.214.146]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJJUu-0007s6-Fu for emacs-pretest-bug@gnu.org; Sun, 27 Jan 2008 21:13:20 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAKPGnEd5LOnP/2dsb2JhbACBWKha X-IronPort-AV: E=Sophos;i="4.25,257,1199626200"; d="asc'?scan'208";a="30086183" Original-Received: from ppp121-44-233-207.lns2.mel4.internode.on.net (HELO Clio.twb.ath.cx) ([121.44.233.207]) by ipmail01.adl6.internode.on.net with ESMTP; 28 Jan 2008 12:43:17 +1030 In-Reply-To: <87sl0jxu4g.fsf@gmx.de> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:87677 gmane.emacs.pretest.bugs:20782 Archived-At: --===============1018763382== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MGYHOYXEY6WxJCY8" Content-Disposition: inline --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Jan 27, 2008 at 02:42:23PM +0100, Michael Albinus wrote: >> The initial hops are no longer shown in the path [...] >> /sudo:root@leek:/etc >> ...so that instead of editing leek's /etc as root, I was editing my >> laptop's /etc as root! > > That isn't related to multi-hops. It is simply an error in Tramp, > which shall inform you about the used host. > > In case of su(do)?, the host name is ignored (except there is a > setting in tramp-default-proxies-alist). The Tramp documentation > says for the su(do)? methods: "... With other words, a specified > host name in the file name is silently ignored." > > Consequently, if you open a file "/sudo:root@leek:/etc", it must be > expanded to "/sudo:root@localhost:/etc", and this shall be > visible. A warning (or an error?) shall be raised. I'll fix it. > >> It seems that shell-command (M-!) no longer uses a shell in TRAMP >> Another example was running M-! find -name \*~ -delete RET in >> /ssh:leek:, which should have deleted backup files in my home >> directory. In Emacs 22, it behaves correctly. In CVS Emacs, it >> silently fails. > > I'll fix it. Obviously, there was too much optimization in Tramp 2.1 - > the COMMAND shall still be called via "sh -c COMMAND". Thanks. These are my two biggest concerns, and I see from your next message that they're being addressed promptly. >> Multi-hop now requires tedious alist editing. [details...] > > I admit, that in your use case it is a real regression. There have > been several reasons to change the multi-hop syntax. I remember, > that for people with *static* multi-hop paths the new syntax is > shorter and more convenient to type therefore; Granted. I don't object to adding default proxies. > 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. > OTOH, setting up a working tramp-default-proxies-alist is kind of > complex, indeed. Agreed. > 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. PS: tramp-default-proxies-alist really isn't an alist anymore! :-) --MGYHOYXEY6WxJCY8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHnTo2Lpef9iTtxAYRAko5AJ9iyhCJQMmjJXWGJaEQ2EE9NStPxwCgmxhM 9V28yfUGfAWn79OJ56iCApM= =ts3F -----END PGP SIGNATURE----- --MGYHOYXEY6WxJCY8-- --===============1018763382== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1018763382==--