all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: ehud@unix.mvs.co.il
Cc: help-gnu-emacs@gnu.org
Subject: Re: Sloppy Directory Completion
Date: Wed, 05 May 2010 10:53:21 -0400	[thread overview]
Message-ID: <jwvocguplxn.fsf-monnier+inbox@gnu.org> (raw)
In-Reply-To: <201005051146.o45BkrrZ025424@beta.mvs.co.il> (Ehud Karni's message of "Wed, 5 May 2010 14:46:53 +0300")

>> > 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*".


        Stefan




  reply	other threads:[~2010-05-05 14:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-17 11:41 Sloppy Directory Completion Nordlöw
2010-03-17 14:18 ` Stefan Monnier
2010-03-17 15:58   ` Nordlöw
2010-05-05 11:46   ` Ehud Karni
2010-05-05 14:53     ` Stefan Monnier [this message]
2010-05-05 14:59       ` Ehud Karni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvocguplxn.fsf-monnier+inbox@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=ehud@unix.mvs.co.il \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.