aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-04-30 20:30:15 +0200
committerLars Ingebrigtsen2016-04-30 20:32:56 +0200
commit207a31432c1ed8b548003a3e4af32c49aa3441e9 (patch)
treec70c88c87fb25f722c24d203747d6aa01a85b75a
parent139874ba53c2e2de9868f8e5234d6ea2bcb97af8 (diff)
downloademacs-207a31432c1ed8b548003a3e4af32c49aa3441e9.tar.gz
emacs-207a31432c1ed8b548003a3e4af32c49aa3441e9.zip
Fill the completion-table-with-predicate doc string
* lisp/minibuffer.el (completion-table-with-predicate): Fill the doc string (bug#20460).
-rw-r--r--lisp/minibuffer.el16
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
369 369
370(defun completion-table-with-predicate (table pred1 strict string pred2 action) 370(defun completion-table-with-predicate (table pred1 strict string pred2 action)
371 "Make a completion table equivalent to TABLE but filtered through PRED1. 371 "Make a completion table equivalent to TABLE but filtered through PRED1.
372PRED1 is a function of one argument which returns non-nil if and only if the 372PRED1 is a function of one argument which returns non-nil if and
373argument is an element of TABLE which should be considered for completion. 373only if the argument is an element of TABLE which should be
374STRING, PRED2, and ACTION are the usual arguments to completion tables, 374considered for completion. STRING, PRED2, and ACTION are the
375as described in `try-completion', `all-completions', and `test-completion'. 375usual arguments to completion tables, as described in
376If STRICT is t, the predicate always applies; if nil it only applies if 376`try-completion', `all-completions', and `test-completion'. If
377it does not reduce the set of possible completions to nothing. 377STRICT is t, the predicate always applies; if nil it only applies
378Note: TABLE needs to be a proper completion table which obeys predicates." 378if it does not reduce the set of possible completions to nothing.
379Note: TABLE needs to be a proper completion table which obeys
380predicates."
379 (cond 381 (cond
380 ((and (not strict) (eq action 'lambda)) 382 ((and (not strict) (eq action 'lambda))
381 ;; Ignore pred1 since it doesn't really have to apply anyway. 383 ;; Ignore pred1 since it doesn't really have to apply anyway.