diff options
| author | Stefan Monnier | 2007-10-20 01:05:50 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-10-20 01:05:50 +0000 |
| commit | a44d450b8ce1e1d39b56e896b665798f826eb3fb (patch) | |
| tree | 5b2e1baf9f78a86d0acefb1cb407892c361a627f | |
| parent | 4bb49b438b372d293cda1cd9d16d49a66bfb824e (diff) | |
| download | emacs-a44d450b8ce1e1d39b56e896b665798f826eb3fb.tar.gz emacs-a44d450b8ce1e1d39b56e896b665798f826eb3fb.zip | |
(vc-arch-revision-completion-table): Make it work when the
arg is a list of files.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-arch.el | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 19986354bd4..b05862f05dc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-10-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * vc-arch.el (vc-arch-revision-completion-table): Make it work when the | ||
| 4 | arg is a list of files. | ||
| 5 | |||
| 1 | 2007-10-19 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2007-10-19 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * vc.el: Remove `diff-tree' operation, now subsumed by `diff'. | 8 | * vc.el: Remove `diff-tree' operation, now subsumed by `diff'. |
diff --git a/lisp/vc-arch.el b/lisp/vc-arch.el index 96957de0812..3c4e4b4d791 100644 --- a/lisp/vc-arch.el +++ b/lisp/vc-arch.el | |||
| @@ -442,11 +442,11 @@ Return non-nil if FILE is unchanged." | |||
| 442 | (concat "*/" string)) | 442 | (concat "*/" string)) |
| 443 | "*")))))) | 443 | "*")))))) |
| 444 | 444 | ||
| 445 | (defun vc-arch-revision-completion-table (file) | 445 | (defun vc-arch-revision-completion-table (files) |
| 446 | (lexical-let ((file file)) | 446 | (lexical-let ((files files)) |
| 447 | (lambda (string pred action) | 447 | (lambda (string pred action) |
| 448 | ;; FIXME: complete revision patches as well. | 448 | ;; FIXME: complete revision patches as well. |
| 449 | (let* ((root (expand-file-name "{arch}" (vc-arch-root file))) | 449 | (let* ((root (expand-file-name "{arch}" (vc-arch-root (car files)))) |
| 450 | (table (vc-arch--version-completion-table root string))) | 450 | (table (vc-arch--version-completion-table root string))) |
| 451 | (complete-with-action action table string pred))))) | 451 | (complete-with-action action table string pred))))) |
| 452 | 452 | ||