"Kim F. Storm" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]:")
> => OK

(file-name-all-completions "" "/ssh:[EMAIL PROTECTED]:")

OK

> ========
>
> (file-name-all-completions "" "/telnet:[EMAIL PROTECTED]:/tmp")
> => OK

(file-name-all-completions "" "/ssh:[EMAIL PROTECTED]:/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 "" "/[EMAIL PROTECTED]:")
> => OK

(file-name-all-completions "" "/[EMAIL PROTECTED]:")

This returns nil. Likely it is an ange-ftp behaviour. Nevertheless,
(file-name-all-completions "" "/[EMAIL PROTECTED]:./") 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.


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to