summaryrefslogtreecommitdiff
path: root/lisp/vc-dir.el
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2008-08-25 15:14:52 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2008-08-25 15:14:52 +0000
commit9c6c6d1fede2bb783c6bdf8b6f0e9c301e10839d (patch)
treea33d642ebbdd1f2aa9d2e6b8543b6bc02c523159 /lisp/vc-dir.el
parent0d80bf29197cf4d954276602f65281617877fb0f (diff)
(vc-dir-marked-only-files-and-states):
(vc-dir-child-files-and-states): Reverse the list before returning it.
Diffstat (limited to 'lisp/vc-dir.el')
-rw-r--r--lisp/vc-dir.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/vc-dir.el b/lisp/vc-dir.el
index bd998fbac3..87c0ce3ef9 100644
--- a/lisp/vc-dir.el
+++ b/lisp/vc-dir.el
@@ -777,7 +777,7 @@ child files."
result)
(setq crt (ewoc-next vc-ewoc crt)))
(setq crt (ewoc-next vc-ewoc crt)))))
- result))
+ (nreverse result)))
(defun vc-dir-child-files-and-states ()
"Return the list of conses (FILE . STATE) for child files of the current entry if it's a directory.
@@ -802,7 +802,7 @@ If it is a file, return the corresponding cons for the file itself."
(push
(cons (expand-file-name (vc-dir-fileinfo->name crt-data))
(vc-dir-fileinfo->state crt-data)) result))
- result))
+ (nreverse result)))
(defun vc-dir-recompute-file-state (fname def-dir)
(let* ((file-short (file-relative-name fname def-dir))