From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: bug#4004: filename completion Date: Tue, 18 Aug 2009 21:03:07 +0200 Message-ID: <874os5j66s.fsf@gmx.de> References: <1b97198a0908010936o1f0b2015w8405a82648a5f869@mail.gmail.com> <877hxlbndl.fsf@gmx.de> <87ocqwenwl.fsf@gmx.de> <87my607th6.fsf@gmx.de> <87eir9wv03.fsf@gmx.de> <87ljlhyx5b.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250622212 22815 80.91.229.12 (18 Aug 2009 19:03:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Aug 2009 19:03:32 +0000 (UTC) Cc: David Kastrup , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 18 21:03:25 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MdTxs-0006xM-CV for ged-emacs-devel@m.gmane.org; Tue, 18 Aug 2009 21:03:24 +0200 Original-Received: from localhost ([127.0.0.1]:58816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdTxr-0003dT-Um for ged-emacs-devel@m.gmane.org; Tue, 18 Aug 2009 15:03:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdTxk-0003aQ-Rb for emacs-devel@gnu.org; Tue, 18 Aug 2009 15:03:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdTxg-0003XR-02 for emacs-devel@gnu.org; Tue, 18 Aug 2009 15:03:16 -0400 Original-Received: from [199.232.76.173] (port=51273 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdTxf-0003X8-HY for emacs-devel@gnu.org; Tue, 18 Aug 2009 15:03:11 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:45148) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MdTxe-0000cs-Mf for emacs-devel@gnu.org; Tue, 18 Aug 2009 15:03:11 -0400 Original-Received: (qmail invoked by alias); 18 Aug 2009 19:03:08 -0000 Original-Received: from p57A221CB.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.33.203] by mail.gmx.net (mp038) with SMTP; 18 Aug 2009 21:03:08 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/ImIxCu+DI8NOsghw8T63D28Jho6x1O4HafEbgBs N9CCudi3cWPuLz In-Reply-To: (Stefan Monnier's message of "Tue, 18 Aug 2009 12:44:09 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.65 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114379 Archived-At: Stefan Monnier 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 "/stefan@". Nice idea. > Stefan Best regards, Michael.