diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-04-21 21:18:07 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-04-21 21:18:07 +0000 |
commit | c023a34f05a3cca887d0d3e21b27c7ad720ba795 (patch) | |
tree | 8a30374c0761cf05d18bd53500870308a8dd891b /lisp/complete.el | |
parent | f50e56f0e13eedd1a75214e680a5066fb77ee05d (diff) | |
download | emacs-c023a34f05a3cca887d0d3e21b27c7ad720ba795.tar.gz |
(PC-complete-as-file-name, PC-read-file-name-internal):
Treat minibuffer-completion-predicate as a predicate.
Diffstat (limited to 'lisp/complete.el')
-rw-r--r-- | lisp/complete.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/complete.el b/lisp/complete.el index 0050ecf7b90..3c4385273d1 100644 --- a/lisp/complete.el +++ b/lisp/complete.el @@ -966,7 +966,7 @@ or properties are considered." (+ (point) 2) (point-min))) (minibuffer-completion-table 'PC-read-file-name-internal) - (minibuffer-completion-predicate "") + (minibuffer-completion-predicate nil) (PC-not-minibuffer t)) (goto-char end) (PC-do-completion nil beg end))) @@ -1096,7 +1096,7 @@ absolute rather than relative to some directory on the SEARCH-PATH." (setq sorted (cdr sorted))) compressed)))) -(defun PC-read-file-name-internal (string dir action) +(defun PC-read-file-name-internal (string pred action) "Extend `read-file-name-internal' to handle include files. This is only used by " (if (string-match "<\\([^\"<>]*\\)>?\\'" string) @@ -1112,7 +1112,7 @@ This is only used by " ((eq action 'lambda) (test-completion str2 completion-table nil)) ((eq action nil) (PC-try-completion str2 completion-table nil)) ((eq action t) (all-completions str2 completion-table nil)))) - (read-file-name-internal string dir action))) + (read-file-name-internal string pred action))) (provide 'complete) |