Mercurial > emacs
diff lisp/vc-bzr.el @ 108681:1b1048318854
* lisp/vc-bzr.el (vc-bzr-revision-completion-table): Apply
`file-directory-p' to the filename part rather than to the whole text.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Mon, 31 May 2010 22:06:09 -0400 |
parents | 6e6072f0c0a2 |
children | bace4ba4c137 8027e412df98 |
line wrap: on
line diff
--- a/lisp/vc-bzr.el Mon May 31 16:47:04 2010 -0400 +++ b/lisp/vc-bzr.el Mon May 31 22:06:09 2010 -0400 @@ -945,10 +945,12 @@ ((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))