Hi,

I'm using latest Emacs and Tramp both checked out from CVS.
When I performed the `f' command in order to open a file in the
dired buffer for the directory:

/ftp:[EMAIL PROTECTED]:/somewhere/

it attempts to connect to the remotehost as an anonymous user.
It is because the default value for the ange-ftp-name-format
variable is not suitable to Tramp file names:

(ange-ftp-ftp-name "/ftp:[EMAIL PROTECTED]:/somewhere/file")
 => ("ftp" "anonymous" "[EMAIL PROTECTED]:/somewhere/file")

The leading "ftp:" is needed when I want to use ftp rather than
ssh because of the default value of tramp-default-method.  I've
confirmed that the problem can be fixed by improving the default
value for the ange-ftp-name-format variable as follows:

(setq ange-ftp-name-format
      '("^/\\(?:ftp:\\)?\\(?:\\([^/:]*\\)@\\)?\\([^@/:]*[^@/:.]\\):\\(.*\\)"
        2 1 3))

I greatly appreciate if someone modifies the Emacs source code.

Thanks in advance,
-- 
Katsumi Yamaoka <[EMAIL PROTECTED]>



_______________________________________________
Tramp-devel mailing list
[EMAIL PROTECTED]
http://mail.nongnu.org/mailman/listinfo/tramp-devel

Reply via email to