From feceda26100f1b5712a85aadf0c428a1507b538d Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 31 May 2010 22:06:09 -0400 Subject: [PATCH] * lisp/vc-bzr.el (vc-bzr-revision-completion-table): Apply `file-directory-p' to the filename part rather than to the whole text. --- lisp/ChangeLog | 5 +++++ lisp/vc-bzr.el | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d0525c61e6c..e7ee293f4ba 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-06-01 Stefan Monnier + + * vc-bzr.el (vc-bzr-revision-completion-table): Apply + `file-directory-p' to the filename part rather than to the whole text. + 2010-05-31 Jonathan Marchand (tiny change) * cedet/ede/cpp-root.el (ede-set-project-variables): Fix feature name diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el index b0dbb8ec192..8396547bdcb 100644 --- a/lisp/vc-bzr.el +++ b/lisp/vc-bzr.el @@ -945,10 +945,12 @@ stream. Standard error output is discarded." ((string-match "\\`\\(ancestor\\|branch\\|\\(revno:\\)?[-0-9]+:\\):" string) (completion-table-with-context (substring string 0 (match-end 0)) - 'completion-file-name-table + (apply-partially + 'completion-table-with-predicate + 'completion-file-name-table + 'file-directory-p t) (substring string (match-end 0)) - ;; Dropping `pred' for no good reason. - 'file-directory-p + pred action)) ((string-match "\\`\\(before\\):" string) (completion-table-with-context (substring string 0 (match-end 0)) -- 2.39.2