]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-arch-revision-completion-table): Make it work when the
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 20 Oct 2007 01:05:50 +0000 (01:05 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 20 Oct 2007 01:05:50 +0000 (01:05 +0000)
arg is a list of files.

lisp/ChangeLog
lisp/vc-arch.el

index 19986354bd416135bcdf10180ab41659031b6b37..b05862f05dcb87be03d8c976c3b8d4fb7bbf5400 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-20  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * vc-arch.el (vc-arch-revision-completion-table): Make it work when the
+       arg is a list of files.
+
 2007-10-19  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * vc.el: Remove `diff-tree' operation, now subsumed by `diff'.
index 96957de08128b57737dc48fec81ff127535537b8..3c4e4b4d7913970017a4541c499481e7b88d002c 100644 (file)
@@ -442,11 +442,11 @@ Return non-nil if FILE is unchanged."
                      (concat "*/" string))
                    "*"))))))
 
-(defun vc-arch-revision-completion-table (file)
-  (lexical-let ((file file))
+(defun vc-arch-revision-completion-table (files)
+  (lexical-let ((files files))
     (lambda (string pred action)
       ;; FIXME: complete revision patches as well.
-      (let* ((root (expand-file-name "{arch}" (vc-arch-root file)))
+      (let* ((root (expand-file-name "{arch}" (vc-arch-root (car files))))
              (table (vc-arch--version-completion-table root string)))
        (complete-with-action action table string pred)))))