From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.tramp,gmane.emacs.devel Subject: Re: CORRECT VERSION: tramp (2.0.51); tramp and file-name-all-completions Date: Mon, 17 Oct 2005 06:49:52 +0200 Message-ID: <87r7aklpcf.fsf@gmx.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129524641 32301 80.91.229.2 (17 Oct 2005 04:50:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Oct 2005 04:50:41 +0000 (UTC) Cc: tramp-devel@gnu.org, emacs-devel@gnu.org Original-X-From: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Mon Oct 17 06:50:39 2005 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ERMwj-0000d2-Fz for tramp@deer.gmane.org; Mon, 17 Oct 2005 06:50:01 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ERMwg-0000cv-00 for ; Mon, 17 Oct 2005 06:49:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ERMwe-0005WO-RT for tramp@quimby.gnus.org; Mon, 17 Oct 2005 00:49:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ERMwZ-0005Vo-G8 for tramp-devel@gnu.org; Mon, 17 Oct 2005 00:49:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ERMwY-0005VJ-Je for tramp-devel@gnu.org; Mon, 17 Oct 2005 00:49:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ERMwY-0005V9-Db for tramp-devel@gnu.org; Mon, 17 Oct 2005 00:49:50 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1ERMwY-0008Jz-Cd for tramp-devel@gnu.org; Mon, 17 Oct 2005 00:49:50 -0400 Original-Received: (qmail invoked by alias); 17 Oct 2005 04:49:48 -0000 Original-Received: from p54BDA4D5.dip0.t-ipconnect.de (EHLO localhost.local) [84.189.164.213] by mail.gmx.net (mp022) with SMTP; 17 Oct 2005 06:49:48 +0200 X-Authenticated: #3708877 Original-To: "Kim F. Storm" User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: tramp-devel.gnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Errors-To: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Xref: news.gmane.org gmane.emacs.tramp:2878 gmane.emacs.devel:44159 Archived-At: "Kim F. Storm" writes: > I'm trying to make ido work sensibly with tramp syntax -- but > getting a grip on file-name-all-completions is really a nightmare. I've committed a new tramp.el into Emacs CVS, please try this. Note that that I have set tramp-default-method to "ftp", therefore the results are slightly different. And my telnetd is disabled by default; I've used ssh therefore. > ======== > > (file-name-all-completions "" "/telnet:") > => ERROR: "Login Failed" (file-name-all-completions "" "/ssh:") OK > ======== > > (file-name-all-completions "" "/telnet:kfs@") > => ERROR: Login Failed (file-name-all-completions "" "/ssh:albinus@") OK > ======== > > (file-name-all-completions "" "/telnet:kfs@localhost:") > => OK (file-name-all-completions "" "/ssh:albinus@localhost:") OK > ======== > > (file-name-all-completions "" "/telnet:kfs@localhost:/tmp") > => OK (file-name-all-completions "" "/ssh:albinus@localhost:/tmp") OK > ======== > > (file-name-all-completions "" "/kfs@") > => (file-error "Opening directory" "no such file or directory" "/kfs@") (file-name-all-completions "" "/albinus@") OK > ======== > > (file-name-all-completions "" "/kfs@localhost:") > => OK (file-name-all-completions "" "/albinus@localhost:") This returns nil. Likely it is an ange-ftp behaviour. Nevertheless, (file-name-all-completions "" "/albinus@localhost:./") returns the desired values. > ======== > > (file-name-all-completions "" "/localhost:") > => OK (file-name-all-completions "" "/localhost:") Also nil, which can be masqued by (file-name-all-completions "" "/localhost:./") Best regards, Michael.