[Top][All Lists]

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

Re: bug#4004: filename completion

From: Michael Albinus
Subject: Re: bug#4004: filename completion
Date: Tue, 18 Aug 2009 21:03:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> I was originally thinking that we could use partial-completion here.
> Basically, just like "/u/ TAB" can try to complete to /usr/ (after
> checking that there's no /u), we could have "/s: TAB" try to complete to
> /ssh:, but there's a problem: we'd need to "check that there's no /s",
> which in our case means check that there's no host named "s" (since
> /s:filename would refer to a filename on host s).  If we get rid of
> ange-ftp's /host: syntax and force the use of something like /ftp:, then
> maybe we can get something working.

Tramp does something similar already. If you type "/s TAB", you get
offered "/sbin", "/ssh:" (a method), "/stefan@" (a user) and "/somehost:"
(a hostname).

David's proposal is just more consequent in working partial completion
like partial completion ought to do. Interesting idea.

"/s TAB" and "/s/ TAB" would only complete to "/sbin". "/s: TAB" would
complete to "/ssh:" and "/somehost:". And "/s@ TAB" would complete to

Nice idea.

>         Stefan

Best regards, Michael.

reply via email to

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