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: Fri, 21 Jun 2002 22:52:33 +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> <200206211629.g5LGTTl20986@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 1024692850 6386 127.0.0.1 (21 Jun 2002 20:54:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2002 20:54:10 +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 17LVQ2-0001et-00 for ; Fri, 21 Jun 2002 22:54:10 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17LVsM-00070D-00 for ; Fri, 21 Jun 2002 23:23:26 +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 17LVQ2-0005GC-00; Fri, 21 Jun 2002 16:54: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 17LVOa-0005EK-00; Fri, 21 Jun 2002 16:52:40 -0400 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g5LKqcb16370; Fri, 21 Jun 2002 22:52:38 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id WAA16205; Fri, 21 Jun 2002 22:52:33 +0200 (MET DST) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 73A693B5E4; Fri, 21 Jun 2002 22:52:33 +0200 (CEST) Original-To: rms@gnu.org In-Reply-To: <200206211629.g5LGTTl20986@aztec.santafe.edu> (Richard Stallman's message of "Fri, 21 Jun 2002 10:29:29 -0600 (MDT)") Original-Lines: 75 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:5077 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5077 Richard Stallman writes: > 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 > > (Note that I am not sure whether the strings `hop1' and `hop2' that > appear in the last example are literal or metasyntactic variables.) They are metasyntactic variables. Sorry for not making this clear. Choices are ssh, telnet, rsh, su, sudo. For each hop, you specify which command should be used to log into that computer. > I suggest these syntaxes: > > /host:file > /user@host:file > /user@host@method:file > /user1@host1:user2@host2:file > > If there is some sort of "hop" information that needs to be given, > the last could look like > > /user1@host1@hop1:user2@host2@hop2:file > > This seems both simpler and more natural than either your current > syntax or your current proposal. `[multi]' seems unnecessary, since > you can determine how many colons there are. The > file-name-handler-alist can specify "^/\\([^/:]*[^/:.]:\\)+" to match > the whole prefix. This could almost work, except that there are two multi methods. (One uses uuencode and the other uses base64 encoding to transfer the files.) In the old Tramp, you say /[multi]... for base64 and /[multiu]... for uuencode. Hm. > * We designate a special method "ftp" which, when specified, invokes > Ange-FTP. > > That is a good idea. OK. The following part: > * 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. > > Those seem like good ideas too. Perhaps the alist should contain > regexps to match against the user and the host. > > In addition, there should be a separate customizable user option that > specifies the ultimate choice of method, for when the user/host pair > is not mentioned in the alist. ... is already implemented. The new code is not in the Emacs CVS, only in the Tramp CVS (on Savannah). (I'll copy the changes soon.) The current implementation still uses the bracket-style filenames, but I want to change that as well, including the forward-to-Ange-FTP feature that we were talking about. kai -- A large number of young women don't trust men with beards. (BFBS Radio)