diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2007-07-10 19:55:12 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2007-07-10 19:55:12 +0000 |
commit | ebaba1bd737729891542bdfc8e38a31ceba90e6f (patch) | |
tree | 0a411c4d193456732f77e6f8624e27760a028a51 /lisp/vc-arch.el | |
parent | 47ccb9932969a69ba424464047e56c9bf77b33fb (diff) | |
download | emacs-ebaba1bd737729891542bdfc8e38a31ceba90e6f.tar.gz |
(vc-arch-complete): Remove.
(vc-arch-revision-completion-table): Use complete-with-action.
Diffstat (limited to 'lisp/vc-arch.el')
-rw-r--r-- | lisp/vc-arch.el | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/lisp/vc-arch.el b/lisp/vc-arch.el index e4c13d3039a..c6aaa6c8c0b 100644 --- a/lisp/vc-arch.el +++ b/lisp/vc-arch.el @@ -424,13 +424,6 @@ Return non-nil if FILE is unchanged." ;;; Completion of versions and revisions. -(defun vc-arch-complete (table string pred action) - (assert (not (functionp table))) - (cond - ((null action) (try-completion string table pred)) - ((eq action t) (all-completions string table pred)) - (t (test-completion string table pred)))) - (defun vc-arch--version-completion-table (root string) (delq nil (mapcar @@ -450,10 +443,9 @@ Return non-nil if FILE is unchanged." (lexical-let ((file file)) (lambda (string pred action) ;; FIXME: complete revision patches as well. - (let ((root (expand-file-name "{arch}" (vc-arch-root file)))) - (vc-arch-complete - (vc-arch--version-completion-table root string) - string pred action))))) + (let* ((root (expand-file-name "{arch}" (vc-arch-root file))) + (table (vc-arch--version-completion-table root string))) + (complete-with-action action table string pred))))) ;;; Trimming revision libraries. |