From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: Integrate Tramp Date: Thu, 20 Jun 2002 18:11:51 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200206171631.g5HGVBM13861@aztec.santafe.edu> <200206190223.g5J2NlQ15963@aztec.santafe.edu> <200206201434.g5KEYru18709@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1024589535 31877 127.0.0.1 (20 Jun 2002 16:12:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Jun 2002 16:12:15 +0000 (UTC) Cc: miles@gnu.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17L4Xf-0008I2-00 for ; Thu, 20 Jun 2002 18:12:15 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17L4zQ-0001my-00 for ; Thu, 20 Jun 2002 18:40:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17L4Xa-0003Io-00; Thu, 20 Jun 2002 12:12:10 -0400 Original-Received: from waldorf.cs.uni-dortmund.de ([129.217.4.42]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17L4XO-0003He-00; Thu, 20 Jun 2002 12:11:58 -0400 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g5KGBub27760; Thu, 20 Jun 2002 18:11:57 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id SAA14588; Thu, 20 Jun 2002 18:11:51 +0200 (MET DST) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 5D0123B5E2; Thu, 20 Jun 2002 18:11:51 +0200 (CEST) Original-To: rms@gnu.org In-Reply-To: <200206201434.g5KEYru18709@aztec.santafe.edu> (Richard Stallman's message of "Thu, 20 Jun 2002 08:34:53 -0600 (MDT)") Original-Lines: 58 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (i686-pc-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5019 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5019 Richard Stallman writes: > I think we need to implement this now, before the next release, > because having two alternative syntaxes for remote file names is not a > coherent interface. It is usable for wizards, but not clean and nice. > > If we can arrange to use the same remote file name syntax > that people are used to, it will also mean less for users to learn. Tramp knows the following kinds of filenames (square brackets are literal characters): /[host]file /[user@host]file /[method/user@host]file /[multi/hop1:user1@host1/hop2:user2@host2]file The last variant I call multi-hop method. It can contain an arbitrary number of hops. A hop looks like "hop:user@host". Ange-FTP directly supports the first two: /host:file /user@host:file For the others, this syntax needs to be extended. Hm. Let's see. The characters "@" and ":" should not be used to separate the method. But maybe the method could be in square brackets. So the third line becomes this: /[method]user@host:file That seems to be simple and easy enough. Hm. And for the multi-hop methods, the hops could be separated by comma and the "hop" part could be separated by "#", so we arrive at this format: /[multi]hop1#user1@host1,hop2#user2@host2:file This appears to be a fairly natural filename format which people might like. Now comes the question: in which cases should Tramp invoke Ange-FTP? My ideas are: * We designate a special method "ftp" which, when specified, invokes Ange-FTP. * Tramp is augmented with an alist of user/host pairs and default methods. This alist can be used to tell Tramp to use any method, including "ftp", for a specific user/host combination. * Specifying the method in the filename overrides this alist. What do you think? kai -- A large number of young women don't trust men with beards. (BFBS Radio)