emacs-devel
[Top][All Lists]
Advanced

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

Re: completion-ignored-extensions: match full file names


From: Stefan Monnier
Subject: Re: completion-ignored-extensions: match full file names
Date: Fri, 14 Jan 2011 10:26:22 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Each element of completion-ignored-extensions is matched at the _end_
> of the file/directory name of the completion candidates.  So I think
> currently what you want is not possible.

> Using regexp syntax is not a good idea, IMO, since that would require
> to rewrite all the customizations users out there have, to escape the
> dot.  But I think we could make a change whereby if an element of
> completion-ignored-extensions begins with a slash, that means match at
> the beginning.  Then we could have "/.git/" as an element, and that
> would ignore only the standard ".git" subdirectories, not any
> directory that happens to end in ".git".

> WDYT?

I'd much rather add regexp-support, which will give a lot more
flexibility and should be pretty easy to implement.  Of course, it will
have to use a new variable since as you point out the current 
completion-ignored-extensions aren't compatible with
a regexp interpretation.


        Stefan



reply via email to

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