aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2007-07-10 19:55:12 +0000
committerStefan Monnier2007-07-10 19:55:12 +0000
commitebaba1bd737729891542bdfc8e38a31ceba90e6f (patch)
tree0a411c4d193456732f77e6f8624e27760a028a51
parent47ccb9932969a69ba424464047e56c9bf77b33fb (diff)
downloademacs-ebaba1bd737729891542bdfc8e38a31ceba90e6f.tar.gz
emacs-ebaba1bd737729891542bdfc8e38a31ceba90e6f.zip
(vc-arch-complete): Remove.
(vc-arch-revision-completion-table): Use complete-with-action.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/vc-arch.el14
2 files changed, 12 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2c0e79bb75f..2123e07d766 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * vc-arch.el (vc-arch-complete): Remove.
4 (vc-arch-revision-completion-table): Use complete-with-action.
5
6 * subr.el (condition-case-no-debug, with-demoted-errors): New macros.
7 (complete-with-action): New function.
8 (dynamic-completion-table): Use it.
9
12007-07-10 Michael Albinus <michael.albinus@gmx.de> 102007-07-10 Michael Albinus <michael.albinus@gmx.de>
2 11
3 * comint.el (make-comint, make-comint-in-buffer) 12 * comint.el (make-comint, make-comint-in-buffer)
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."
424 424
425;;; Completion of versions and revisions. 425;;; Completion of versions and revisions.
426 426
427(defun vc-arch-complete (table string pred action)
428 (assert (not (functionp table)))
429 (cond
430 ((null action) (try-completion string table pred))
431 ((eq action t) (all-completions string table pred))
432 (t (test-completion string table pred))))
433
434(defun vc-arch--version-completion-table (root string) 427(defun vc-arch--version-completion-table (root string)
435 (delq nil 428 (delq nil
436 (mapcar 429 (mapcar
@@ -450,10 +443,9 @@ Return non-nil if FILE is unchanged."
450 (lexical-let ((file file)) 443 (lexical-let ((file file))
451 (lambda (string pred action) 444 (lambda (string pred action)
452 ;; FIXME: complete revision patches as well. 445 ;; FIXME: complete revision patches as well.
453 (let ((root (expand-file-name "{arch}" (vc-arch-root file)))) 446 (let* ((root (expand-file-name "{arch}" (vc-arch-root file)))
454 (vc-arch-complete 447 (table (vc-arch--version-completion-table root string)))
455 (vc-arch--version-completion-table root string) 448 (complete-with-action action table string pred)))))
456 string pred action)))))
457 449
458;;; Trimming revision libraries. 450;;; Trimming revision libraries.
459 451