From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.help Subject: Re: Sloppy Directory Completion Date: Wed, 5 May 2010 17:59:43 +0300 Organization: Mivtach-Simon Insurance agencies Message-ID: <201005051459.o45ExhDq030766@beta.mvs.co.il> References: <5e481626-c874-4f97-9c69-5ef776adfc83@d27g2000yqf.googlegroups.com> <201005051146.o45BkrrZ025424@beta.mvs.co.il> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1273090237 6786 80.91.229.12 (5 May 2010 20:10:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 May 2010 20:10:37 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: monnier@iro.umontreal.ca Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 05 22:10:32 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9kuW-0004ZV-EB for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 22:10:31 +0200 Original-Received: from localhost ([127.0.0.1]:33642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9ku0-0003zw-AK for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 16:09:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O9g4n-0002lH-Cs for help-gnu-emacs@gnu.org; Wed, 05 May 2010 10:59:53 -0400 Original-Received: from [140.186.70.92] (port=57182 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9g4l-0002jl-K0 for help-gnu-emacs@gnu.org; Wed, 05 May 2010 10:59:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O9g4j-0004G5-AJ for help-gnu-emacs@gnu.org; Wed, 05 May 2010 10:59:51 -0400 Original-Received: from [193.16.147.12] (port=58063 helo=unix.mvs.co.il) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9g4i-0004FM-Sy for help-gnu-emacs@gnu.org; Wed, 05 May 2010 10:59:49 -0400 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.13.8/8.13.7) with ESMTP id o45ExiIQ013747; Wed, 5 May 2010 17:59:45 +0300 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.14.1/8.14.1) with ESMTP id o45Exind030769; Wed, 5 May 2010 17:59:44 +0300 Original-Received: (from root@localhost) by beta.mvs.co.il (8.14.1/8.14.1/Submit) id o45ExhDq030766; Wed, 5 May 2010 17:59:43 +0300 In-reply-to: (message from Stefan Monnier on Wed, 05 May 2010 10:53:21 -0400) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.109) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73476 Archived-At: On Wed, 05 May 2010 10:53:21 -0400, Stefan Monnier wrote: > > >> > Why doesn't Emacs complete on directories only in for example dired > >> > (C-x d)? > >> > Is this a bug or a todo? > >> I think it's a bug. > > Many times I do completion on something like "*use*" just to find the > > group of files I want see and than use something like "bsw2-use*subgroup" > > as the actual argument to `dired'. > [...] > > May be completion of directory names ONLY should be an option, but > > I disagree strongly that it be the default completion. > > The way I see it, completion for dired should work as follows: > if we can complete to a set of directories, then only complete to > those directories, but if there is no directory to which to complete, > then complete against files. > So in your above example, it would work as you want at the condition > that there is no directory which matches "*use*". Sounds good. So move it from "bug" to "todo". Ehud. -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D Better Safe Than Sorry