]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc-bzr.el (vc-bzr-revision-completion-table): Apply
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 1 Jun 2010 02:06:09 +0000 (22:06 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 1 Jun 2010 02:06:09 +0000 (22:06 -0400)
`file-directory-p' to the filename part rather than to the whole text.

lisp/ChangeLog
lisp/vc-bzr.el

index d0525c61e6cc75e44261285f609674a7e72a3f0a..e7ee293f4bafef5d0d644ebe77ba2854fbea79aa 100644 (file)
@@ -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
index b0dbb8ec1929bd7987e0ec7eb9f5043cec5de1ce..8396547bdcbd5b998da94022188fd6ed3d139078 100644 (file)
@@ -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))