[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ange-ftp-name-format needs to be improved
From: |
Katsumi Yamaoka |
Subject: |
ange-ftp-name-format needs to be improved |
Date: |
Thu, 22 Jan 2004 11:45:34 +0900 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
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:address@hidden:/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:address@hidden:/somewhere/file")
=> ("ftp" "anonymous" "address@hidden:/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 <address@hidden>
- ange-ftp-name-format needs to be improved,
Katsumi Yamaoka <=
- Re: ange-ftp-name-format needs to be improved, Michael Albinus, 2004/01/24
- Re: ange-ftp-name-format needs to be improved, Katsumi Yamaoka, 2004/01/26
- Tramp ftp bug (was Re: ange-ftp-name-format needs to be improved), Katsumi Yamaoka, 2004/01/26
- ange-ftp problem (was: ange-ftp-name-format needs to be improved), Michael Albinus, 2004/01/28
- Re: ange-ftp problem, Katsumi Yamaoka, 2004/01/28
- Re: ange-ftp problem (was: ange-ftp-name-format needs to be improved), Stefan Monnier, 2004/01/28
- Re: ange-ftp problem, Juri Linkov, 2004/01/28
- Re: ange-ftp problem, Stefan Monnier, 2004/01/29
- Re: ange-ftp problem, Michael Albinus, 2004/01/29
- Re: ange-ftp problem, Juri Linkov, 2004/01/29