summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2010-05-31 22:06:09 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2010-05-31 22:06:09 -0400
commitfeceda26100f1b5712a85aadf0c428a1507b538d (patch)
treec98cc97d68ebc80a5ffd180c9362bb1a51781553
parenta44ae268f84e162cdecc516ebbe3193e89fae1d2 (diff)
downloademacs-feceda26100f1b5712a85aadf0c428a1507b538d.tar.gz
* lisp/vc-bzr.el (vc-bzr-revision-completion-table): Apply
`file-directory-p' to the filename part rather than to the whole text.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vc-bzr.el8
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 <monnier@iro.umontreal.ca>
+
+ * 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 <jonathlela@gmail.com> (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))