* vc-rcs.el (vc-rcs-dir-status):
authorDan Nicolaescu <dann@ics.uci.edu>
Sat, 5 Apr 2008 00:15:13 +0000 (00:15 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Sat, 5 Apr 2008 00:15:13 +0000 (00:15 +0000)
* vc-sccs.el (vc-sccs-dir-status): New function.

lisp/ChangeLog
lisp/vc-rcs.el
lisp/vc-sccs.el

index 4709f56..cb09fac 100644 (file)
@@ -1,5 +1,8 @@
 2008-04-04  Dan Nicolaescu  <dann@ics.uci.edu>
 
+       * vc-rcs.el (vc-rcs-dir-status):
+       * vc-sccs.el (vc-sccs-dir-status): New function.
+
        * outline.el (outline-mode-menu-bar-map):
        * term.el (terminal-signal-menu): Add :help.
 
index b20240b..387a8ea 100644 (file)
@@ -181,6 +181,18 @@ For a description of possible values, see `vc-check-master-templates'."
                    (vc-rcs-state file))))
         (vc-rcs-state file)))))
 
+;; XXX Experimental function for the vc-dired replacement.
+(defun vc-rcs-dir-status (dir update-function status-buffer)
+  ;; XXX: quick hack, there should be a better way to do this,
+  ;; but it's not worse than vc-dired :-).
+  (let ((flist (vc-expand-dirs (list dir)))
+       (result nil))
+    (dolist (file flist)
+      (let ((state (vc-state file))
+           (frel (file-relative-name file)))
+       (push (list frel state) result)))
+    (funcall update-function result status-buffer)))
+
 (defun vc-rcs-working-revision (file)
   "RCS-specific version of `vc-working-revision'."
   (or (and vc-consult-headers
index 0c1cc41..22b7310 100644 (file)
@@ -144,6 +144,18 @@ For a description of possible values, see `vc-check-master-templates'."
             (vc-sccs-state file))))
     (vc-sccs-state file)))
 
+;; XXX Experimental function for the vc-dired replacement.
+(defun vc-sccs-dir-status (dir update-function status-buffer)
+  ;; XXX: quick hack, there should be a better way to do this,
+  ;; but it's not worse than vc-dired :-).
+  (let ((flist (vc-expand-dirs (list dir)))
+       (result nil))
+    (dolist (file flist)
+      (let ((state (vc-state file))
+           (frel (file-relative-name file)))
+       (push (list frel state) result)))
+    (funcall update-function result status-buffer)))
+
 (defun vc-sccs-working-revision (file)
   "SCCS-specific version of `vc-working-revision'."
   (with-temp-buffer