1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-20 04:50:55 -07:00

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 207a31432c)
This commit is contained in:
Lars Ingebrigtsen 2016-04-30 20:30:15 +02:00
parent 983ad8d7da
commit f3f45020eb

View file

@ -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) (defun completion-table-with-predicate (table pred1 strict string pred2 action)
"Make a completion table equivalent to TABLE but filtered through PRED1. "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 PRED1 is a function of one argument which returns non-nil if and
argument is an element of TABLE which should be considered for completion. only if the argument is an element of TABLE which should be
STRING, PRED2, and ACTION are the usual arguments to completion tables, considered for completion. STRING, PRED2, and ACTION are the
as described in `try-completion', `all-completions', and `test-completion'. usual arguments to completion tables, as described in
If STRICT is t, the predicate always applies; if nil it only applies if `try-completion', `all-completions', and `test-completion'. If
it does not reduce the set of possible completions to nothing. STRICT is t, the predicate always applies; if nil it only applies
Note: TABLE needs to be a proper completion table which obeys predicates." 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 (cond
((and (not strict) (eq action 'lambda)) ((and (not strict) (eq action 'lambda))
;; Ignore pred1 since it doesn't really have to apply anyway. ;; Ignore pred1 since it doesn't really have to apply anyway.