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

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

Re: ignoring subdirectory in find-file completion


From: J. David Boyd
Subject: Re: ignoring subdirectory in find-file completion
Date: Wed, 01 Jun 2005 16:07:26 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Albert Reiner <areiner@tph.tuwien.ac.at> writes:

> Hi,
> 
> I am looking for some way to make completion when using find-file
> ignore any directory named _darcs; i.e., if I have a directory
> structure
> 
>     foo/
>       _darcs/
>         ...
>       bar/
>         ...
> 
> then `M-x find-file f o o / TAB' should complete to `foo/bar/'.
> 
> From the documentation I thought that
> 
>     (add-to-list 'completion-ignored-extensions "_darcs")
> 
> should do what I want, but that does not seem to be the case.
> 
> Any help would be appreciated.
> 
> Albert.

The docs for completion-ignored-extensions say:

...Directories are ignored if they match any string in this list which
ends in a slash...

And your "_darcs" doesn't end in a slash...

Dave


reply via email to

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