[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ange-ftp-name-format needs to be improved

From: Katsumi Yamaoka
Subject: Re: ange-ftp-name-format needs to be improved
Date: Mon, 26 Jan 2004 15:29:02 +0900
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

>>>>> In <address@hidden>
>>>>>   Michael Albinus <address@hidden> wrote:

>> (setq ange-ftp-name-format
>>       '("^/\\(?:ftp:\\)?\\(?:\\([^/:]*\\)@\\)?\\([^@/:]*[^@/:.]\\):\\(.*\\)"
>>      2 1 3))
>> I greatly appreciate if someone modifies the Emacs source code.

> This would be another solution. But Tramp is intended to work with
> older Emacsen (older ange-ftp), too. So I would prefer to solve it
> inside Tramp.

> Please check, whether the fix in CVS, together with the original
> ange-ftp, solves the problem.

Thanks!  I confirmed the problem (Emacs connects to the
remotehost as an anonymous user even in the non-anonymous
connection) has gone.  I see the change you made in tramp-ftp.el
is ingenious!

Unfortunately, I noticed another problem on Tramp ftp.  Emacs
attempts to cd to a remote file, not a directory, after copying
a file from the local dired buffer to the remote dired buffer
using the C command.  It can be verified even if the remotehost
is `localhost'.  Here is a ftp session at that time:

ftp> type binary
200 TYPE is now 8-bit binary
ftp> put /home/yamaoka/file.gz /file.gz
200 PORT command successful
150 Connecting to port 20578

226-41857.2 Mbytes free disk space
226-File successfully transferred
226 0.184 seconds (measured here), 65.23 bytes per second
type ascii
12 bytes sent in 5.9e-05 seconds (2e+02 Kbytes/s)
ftp> 200 TYPE is now ASCII
ftp> cd /file.gz
550 Can't change directory to /file.gz: Not a directory
ftp> cd /file.gz
550 Can't change directory to /file.gz: Not a directory

In addition, the other problem which I reported in the later
part of the message <address@hidden> is still there.

Anyway, people who have been using ange-ftp for years will not
be able to upgrade their Emacs until the ftp method of Tramp is
completed.  I recently began to use Emacs mainly instead of
XEmacs and efs, so I am not an exception.  Although the ssh
method of Tramp seems to work very fine, the insecure ftp is
still useful (and fast) especially for using it behind the

I also encountered another problems related to Tramp ftp,
however I cannot reproduce them now.  I will send reports again
when I can clarify the problems.

Katsumi Yamaoka <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]