aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love1998-06-02 13:21:13 +0000
committerDave Love1998-06-02 13:21:13 +0000
commitf734a13ec478c472c43b8cb72708924e8bc32cd6 (patch)
tree937bfbade8079e192e0f7add707d6ce10618a147
parent5d76bc89d449783f0de33a49f45ef6e84d6ffb08 (diff)
downloademacs-f734a13ec478c472c43b8cb72708924e8bc32cd6.tar.gz
emacs-f734a13ec478c472c43b8cb72708924e8bc32cd6.zip
(normal-top-level-add-subdirs-to-load-path): Ignore
CVS directories too.
-rw-r--r--lisp/startup.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 9aef3420dce..55a05fb6083 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -339,8 +339,8 @@ from being initialized."
339(defun normal-top-level-add-subdirs-to-load-path () 339(defun normal-top-level-add-subdirs-to-load-path ()
340 "Add all subdirectories of current directory to `load-path'. 340 "Add all subdirectories of current directory to `load-path'.
341More precisely, this uses only the subdirectories whose names 341More precisely, this uses only the subdirectories whose names
342start with letters or digits; it excludes any subdirectory named`RCS', 342start with letters or digits; it excludes any subdirectory named `RCS'
343and any subdirectory that contains a file named `.nosearch'." 343or `CVS', and any subdirectory that contains a file named `.nosearch'."
344 (let (dirs 344 (let (dirs
345 (pending (list default-directory))) 345 (pending (list default-directory)))
346 ;; This loop does a breadth-first tree walk on DIR's subtree, 346 ;; This loop does a breadth-first tree walk on DIR's subtree,
@@ -351,7 +351,7 @@ and any subdirectory that contains a file named `.nosearch'."
351 (let ((contents (directory-files (car dirs))) 351 (let ((contents (directory-files (car dirs)))
352 (default-directory (car dirs))) 352 (default-directory (car dirs)))
353 (while contents 353 (while contents
354 (unless (member (car contents) '("." ".." "RCS")) 354 (unless (member (car contents) '("." ".." "RCS" "CVS"))
355 (when (and (string-match "\\`[a-zA-Z0-9]" (car contents)) 355 (when (and (string-match "\\`[a-zA-Z0-9]" (car contents))
356 (file-directory-p (car contents))) 356 (file-directory-p (car contents)))
357 (let ((expanded (expand-file-name (car contents)))) 357 (let ((expanded (expand-file-name (car contents))))