Subject: bug#4286: CVS: lisp/ido.el -- improve ido-ignore-files

From: Juri Linkov <[email-masked]>
Date: Mon, 31 Aug 2009 22:42:50 +0300

>         * ido.el (ido-ignore-files): Add RCS, svn, darcs, sh, git, mtn
>         version control directories.

Better to initialize its default value from either
`vc-directory-exclusion-list' or `completion-ignored-extensions'.
The former is a subset of the latter.

> diff --git a/lisp/ido.el b/lisp/ido.el
> index 2336fea..6316bdf 100644
> --- a/lisp/ido.el
> +++ b/lisp/ido.el
> @@ -391,7 +391,21 @@ example functions that filter buffer names."
>    :group 'ido)
>
>  (defcustom ido-ignore-files
> -  '("\\`CVS/" "\\`#" "\\`.#" "\\`\\.\\./" "\\`\\./")
> +  '(;; Version control system directories (VCS)
> +    "\\`CVS/"
> +    "\\`RCS/"
> +    "\\`\\.svn/"
> +    ;;  Distributed version control system directories (DVCS)
> +    "\\`\\.darcs/"
> +    "\\`\\.hg/"
> +    "\\`\\.git/"
> +    "\\`\\.mtn/"
> +    ;; Backup files
> +    "\\`#"
> +    "\\`.#"
> +    ;; Directory components
> +    "\\`\\.\\./"
> +    "\\`\\./")
>    "List of regexps or functions matching file names to ignore.
>  For example, traditional behavior is not to list files whose names begin
>  with a #, for which the regexp is `\\`#'.  See the source file for

-- 
Juri Linkov
http://www.jurta.org/emacs/