comparison lisp/minibuffer.el @ 94736:3a7862f514d0

(completion-table-with-predicate): Don't use `iff' in docstring.
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 08 May 2008 03:37:39 +0000
parents ee5932bf781d
children 096cfec41046
comparison
equal deleted inserted replaced
94735:2b39e9f51e54 94736:3a7862f514d0
158 ;; in which case `test-completion' should return nil. 158 ;; in which case `test-completion' should return nil.
159 ((eq action 'lambda) nil))) 159 ((eq action 'lambda) nil)))
160 160
161 (defun completion-table-with-predicate (table pred1 strict string pred2 action) 161 (defun completion-table-with-predicate (table pred1 strict string pred2 action)
162 "Make a completion table equivalent to TABLE but filtered through PRED1. 162 "Make a completion table equivalent to TABLE but filtered through PRED1.
163 PRED1 is a function of one argument which returns non-nil iff the 163 PRED1 is a function of one argument which returns non-nil if and only if the
164 argument is an element of TABLE which should be considered for completion. 164 argument is an element of TABLE which should be considered for completion.
165 STRING, PRED2, and ACTION are the usual arguments to completion tables, 165 STRING, PRED2, and ACTION are the usual arguments to completion tables,
166 as described in `try-completion', `all-completions', and `test-completion'. 166 as described in `try-completion', `all-completions', and `test-completion'.
167 If STRICT is t, the predicate always applies; if nil it only applies if 167 If STRICT is t, the predicate always applies; if nil it only applies if
168 it does not reduce the set of possible completions to nothing. 168 it does not reduce the set of possible completions to nothing.