emacs-devel
[Top][All Lists]
Advanced

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

Adding .hg, .bzr, etc. to completion-ignored-extensions


From: Juanma Barranquero
Subject: Adding .hg, .bzr, etc. to completion-ignored-extensions
Date: Wed, 28 Jan 2009 17:56:48 +0100

I'd like to add .hg/, .git/ and .bzr/ to
`completion-ignored-extensions' (CVS/ and .svn/ are already there).

That would be done in bindings.el, so the autoloaded code in pcvs.el
and vc-svn.el to do the same for these two would be removed. IMHO it
does not make much sense to tie the fact that completion ignores these
extensions to whether Emacs supports VC operations on the related VCS
software.

Comments?

    Juanma




2009-01-28  Juanma Barranquero  <address@hidden>

        * bindings.el (completion-ignored-extensions):
        Add entries for VCS metadata directories (CVS/, .svn, etc).

        * pcvs.el (completion-ignored-extensions):
        * vc-svn.el (vc-svn-registered): Don't add VCS-specific directory,
        now done in bindings.el.


Index: lisp/bindings.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/bindings.el,v
retrieving revision 1.217
diff -u -2 -r1.217 bindings.el
--- lisp/bindings.el    27 Jan 2009 20:09:47 -0000      1.217
+++ lisp/bindings.el    28 Jan 2009 16:39:24 -0000
@@ -601,4 +601,6 @@
        '(".elc" ".lof"
         ".glo" ".idx" ".lot"
+        ;; VCS metadata directories
+        ".svn/" ".hg/" ".git/" ".bzr/" "CVS/"
         ;; TeX-related
         ".fmt" ".tfm"
Index: lisp/pcvs.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/pcvs.el,v
retrieving revision 1.121
diff -u -2 -r1.121 pcvs.el
--- lisp/pcvs.el        5 Jan 2009 03:19:39 -0000       1.121
+++ lisp/pcvs.el        28 Jan 2009 16:19:38 -0000
@@ -2326,7 +2326,4 @@
 ;;;;

-;;;###autoload
-(add-to-list 'completion-ignored-extensions "CVS/")
-
 ;;
 ;; Hook to allow calling PCL-CVS by visiting the /CVS subdirectory
Index: lisp/vc-svn.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/vc-svn.el,v
retrieving revision 1.107
diff -u -2 -r1.107 vc-svn.el
--- lisp/vc-svn.el      5 Jan 2009 03:19:53 -0000       1.107
+++ lisp/vc-svn.el      28 Jan 2009 16:18:28 -0000
@@ -120,7 +120,4 @@
 ;;;###autoload       (vc-svn-registered f))))

-;;;###autoload
-(add-to-list 'completion-ignored-extensions ".svn/")
-
 (defun vc-svn-registered (file)
   "Check if FILE is SVN registered."




reply via email to

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