help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Change default behavior of completion-ignored-extensions


From: Eli Zaretskii
Subject: Re: Change default behavior of completion-ignored-extensions
Date: 02 Dec 2003 08:19:55 +0200

> From: Andrew Korty <address@hidden>
> Date: Mon, 01 Dec 2003 19:00:31 -0500
> 
> I'd like to add ./ and ../ to this variable and be able to
> tab-complete right through a directory with only one interesting
> entry.

Emacs already filters out the uninteresting directory entries such as
"." and "..".  This happens automatically; the value of
completion-ignored-extensions does not need to include them.

> For example, if I have a directory ~/foo/ containing a
> subdirectory bar/, I should be able to type
> 
>         M-x find-file RET ~/foo TAB
> 
> and end up with ~/foo/bar/ in the minibuffer instead of first getting
> "[Complete, but not unique]", hitting TAB again, getting
> "Completion List" buffer containing ./, ../, and bar/, and having to
> type "b TAB" to finally get what should have been obvious.

What version of Emacs do you have there?  In Emacs 21.2, I type "C-x
C-f ~/foo TAB" and Emacs completes it to "~/foo/".  Another TAB gets
me "~/foo/bar/", just like I'd expect.  There are no "[Complete, but
not unique]" messages and no need to wade through useless completion
lists.

(The reason that you need 2 TABs to get what you want is because you
might wish to create a new file in ~/foo.  This is a well-documented
feature, unrelated to `completion-ignored-extensions'.)





reply via email to

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