diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2016-04-30 20:30:15 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2016-05-01 19:27:14 +0200 |
commit | f3f45020eb8347f8100a63635c6db275836c9b74 (patch) | |
tree | d0cc59596213967dd8c42b4aaf8fcdcbdff161fc | |
parent | 983ad8d7da9685f5c718b417d4c11868c20c38c8 (diff) | |
download | emacs-f3f45020eb8347f8100a63635c6db275836c9b74.tar.gz |
Fill the completion-table-with-predicate doc string
* lisp/minibuffer.el (completion-table-with-predicate): Fill
the doc string (bug#20460).
(cherry picked from commit 207a31432c1ed8b548003a3e4af32c49aa3441e9)
-rw-r--r-- | lisp/minibuffer.el | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 6540059b965..714ca851eb0 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -369,13 +369,15 @@ instead of a string, a function that takes the completion and returns the (defun completion-table-with-predicate (table pred1 strict string pred2 action) "Make a completion table equivalent to TABLE but filtered through PRED1. -PRED1 is a function of one argument which returns non-nil if and only if the -argument is an element of TABLE which should be considered for completion. -STRING, PRED2, and ACTION are the usual arguments to completion tables, -as described in `try-completion', `all-completions', and `test-completion'. -If STRICT is t, the predicate always applies; if nil it only applies if -it does not reduce the set of possible completions to nothing. -Note: TABLE needs to be a proper completion table which obeys predicates." +PRED1 is a function of one argument which returns non-nil if and +only if the argument is an element of TABLE which should be +considered for completion. STRING, PRED2, and ACTION are the +usual arguments to completion tables, as described in +`try-completion', `all-completions', and `test-completion'. If +STRICT is t, the predicate always applies; if nil it only applies +if it does not reduce the set of possible completions to nothing. +Note: TABLE needs to be a proper completion table which obeys +predicates." (cond ((and (not strict) (eq action 'lambda)) ;; Ignore pred1 since it doesn't really have to apply anyway. |