From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kin Cho Newsgroups: gmane.emacs.help Subject: Re: tramp: plain ftp problem Date: 28 Jun 2003 16:45:58 -0700 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <7iof0hu5op.fsf@neoscale.com> References: <7iy8zswew8.fsf@neoscale.com> <7id6h3wbwc.fsf@neoscale.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056844360 13633 80.91.224.249 (28 Jun 2003 23:52:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 28 Jun 2003 23:52:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 29 01:52:38 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19WPUU-0003XL-00 for ; Sun, 29 Jun 2003 01:52:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19WPT3-0006Z4-QG for gnu-help-gnu-emacs@m.gmane.org; Sat, 28 Jun 2003 19:50:53 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!12.24.46.66!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 12.24.46.66 Original-X-Trace: fu-berlin.de 1056843967 32194738 12.24.46.66 (16 [151019]) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:114821 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11314 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11314 Hi, > Michael Albinus writes: > > > IIRC, this problem has been fixed already in Emacs CVS some weeks > > ago. Pls try that ange-ftp.el. > > The HEAD version of the main branch fixed my problem. Thanks! The HEAD version (Tue Jun 24 10:46:11 2003) of the main branch of ange-ftp-generate-root-prefixes seems to have a problem. It returns a list instead of a list of lists as expected by all-completions (called by ange-ftp-file-name-all-completions). -kin --- ange-ftp.el-orig Tue Jun 24 10:46:11 2003 +++ ange-ftp.el Sat Jun 28 09:26:37 2003 @@ -1402,10 +1402,10 @@ (if (string-match "^[^/]*\\(/\\).*$" key) (let ((host (substring key 0 (match-beginning 1))) (user (substring key (match-end 1)))) - (push (concat user "@" host ":") res)))) + (push (list (concat user "@" host ":")) res)))) ange-ftp-passwd-hashtable) (maphash - (lambda (host user) (push (concat host ":") res)) + (lambda (host user) (push (list (concat host ":")) res)) ange-ftp-user-hashtable) (or res (list nil)))))