]> git.eshelyaron.com Git - emacs.git/commitdiff
(Problems): Remove fixed issues.
authorDan Nicolaescu <dann@ics.uci.edu>
Mon, 26 May 2008 23:53:33 +0000 (23:53 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Mon, 26 May 2008 23:53:33 +0000 (23:53 +0000)
(vc-expand-dirs): Avoid returning directories.

lisp/ChangeLog
lisp/vc.el

index f958b355c6fd2f0554ea5232be9677c623465b51..f590dad81966c2fb4866c8fbc83e62d183a5186b 100644 (file)
@@ -1,6 +1,7 @@
 2008-05-26  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * vc.el (Problems): Remove fixed issues.
+       (vc-expand-dirs): Avoid returning directories.
 
        * vc-dispatcher.el (vc-resynch-window): Fix mode-line updating.
        (vc-dir-menu-map): Fix menu title for the menu bar and the popup menu.
index 0fd4fbb712cca9820a6594dcec57ffe584d2afd7..41818576cb44b9f533b622286fb26bc9292feeca 100644 (file)
 ;;
 ;; - the CVS vc-dir display is now incorrect from some states.
 ;;
-;; - vc-dir is now broken for RCS and SCCS.
-;;
 ;; - the *vc-dir* buffer is not updated correctly anymore after VC
 ;;   operations that change the file state.
 ;;
@@ -988,10 +986,10 @@ be registered."
 Within directories, only files already under version control are noticed."
   (let ((flattened '()))
     (dolist (node file-or-dir-list)
-      (if (file-directory-p node)
-         (vc-file-tree-walk
-          node (lambda (f) (when (vc-backend f) (push f flattened)))))
-      (push node flattened))
+      (when (file-directory-p node)
+       (vc-file-tree-walk
+        node (lambda (f) (when (vc-backend f) (push f flattened)))))
+      (unless (file-directory-p node) (push node flattened)))
     (nreverse flattened)))
 
 (defun vc-derived-from-dir-mode (&optional buffer)