diff options
| author | Eric S. Raymond | 2008-05-12 18:49:07 +0000 |
|---|---|---|
| committer | Eric S. Raymond | 2008-05-12 18:49:07 +0000 |
| commit | 77c5055c7ba3682c2588dc7a15224f0da2723717 (patch) | |
| tree | b25dbc9ba1f70a002f80a667f53d4e45513aa58c | |
| parent | 728bb8e020a1ac1480787e715e7297eaaf6fad26 (diff) | |
| download | emacs-77c5055c7ba3682c2588dc7a15224f0da2723717.tar.gz emacs-77c5055c7ba3682c2588dc7a15224f0da2723717.zip | |
Tell (vc-expand-dirs) not to throw out explicitly specified files.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc.el | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e74ab626abd..b7e0ba2f06e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-05-12 Eric S. Raymond <esr@snark.thyrsus.com> | ||
| 2 | |||
| 3 | * vc.el (vc-expand-dirs): Stop this function from tossing out | ||
| 4 | explicitlt specified files. | ||
| 5 | |||
| 1 | 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * smerge-mode.el (smerge-apply-resolution-patch): Don't pass nil | 8 | * smerge-mode.el (smerge-apply-resolution-patch): Don't pass nil |
diff --git a/lisp/vc.el b/lisp/vc.el index 54a544b2dae..2795912dca1 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -973,11 +973,13 @@ be registered." | |||
| 973 | 973 | ||
| 974 | (defun vc-expand-dirs (file-or-dir-list) | 974 | (defun vc-expand-dirs (file-or-dir-list) |
| 975 | "Expands directories in a file list specification. | 975 | "Expands directories in a file list specification. |
| 976 | Only files already under version control are noticed." | 976 | Within directories, only files already under version control are noticed." |
| 977 | (let ((flattened '())) | 977 | (let ((flattened '())) |
| 978 | (dolist (node file-or-dir-list) | 978 | (dolist (node file-or-dir-list) |
| 979 | (vc-file-tree-walk | 979 | (if (file-directory-p node) |
| 980 | node (lambda (f) (when (vc-backend f) (push f flattened))))) | 980 | (vc-file-tree-walk |
| 981 | node (lambda (f) (when (vc-backend f) (push f flattened))))) | ||
| 982 | (push node flattened)) | ||
| 981 | (nreverse flattened))) | 983 | (nreverse flattened))) |
| 982 | 984 | ||
| 983 | (defun vc-deduce-fileset (&optional observer) | 985 | (defun vc-deduce-fileset (&optional observer) |