diff options
| author | Dave Love | 1998-06-02 13:21:13 +0000 |
|---|---|---|
| committer | Dave Love | 1998-06-02 13:21:13 +0000 |
| commit | f734a13ec478c472c43b8cb72708924e8bc32cd6 (patch) | |
| tree | 937bfbade8079e192e0f7add707d6ce10618a147 | |
| parent | 5d76bc89d449783f0de33a49f45ef6e84d6ffb08 (diff) | |
| download | emacs-f734a13ec478c472c43b8cb72708924e8bc32cd6.tar.gz emacs-f734a13ec478c472c43b8cb72708924e8bc32cd6.zip | |
(normal-top-level-add-subdirs-to-load-path): Ignore
CVS directories too.
| -rw-r--r-- | lisp/startup.el | 6 |
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'. |
| 341 | More precisely, this uses only the subdirectories whose names | 341 | More precisely, this uses only the subdirectories whose names |
| 342 | start with letters or digits; it excludes any subdirectory named`RCS', | 342 | start with letters or digits; it excludes any subdirectory named `RCS' |
| 343 | and any subdirectory that contains a file named `.nosearch'." | 343 | or `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)))) |