diff options
| author | Lars Ingebrigtsen | 2016-04-30 20:30:15 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-04-30 20:32:56 +0200 |
| commit | 207a31432c1ed8b548003a3e4af32c49aa3441e9 (patch) | |
| tree | c70c88c87fb25f722c24d203747d6aa01a85b75a | |
| parent | 139874ba53c2e2de9868f8e5234d6ea2bcb97af8 (diff) | |
| download | emacs-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.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 | |||
| 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. |
| 372 | PRED1 is a function of one argument which returns non-nil if and only if the | 372 | PRED1 is a function of one argument which returns non-nil if and |
| 373 | argument is an element of TABLE which should be considered for completion. | 373 | only if the argument is an element of TABLE which should be |
| 374 | STRING, PRED2, and ACTION are the usual arguments to completion tables, | 374 | considered for completion. STRING, PRED2, and ACTION are the |
| 375 | as described in `try-completion', `all-completions', and `test-completion'. | 375 | usual arguments to completion tables, as described in |
| 376 | If STRICT is t, the predicate always applies; if nil it only applies if | 376 | `try-completion', `all-completions', and `test-completion'. If |
| 377 | it does not reduce the set of possible completions to nothing. | 377 | STRICT is t, the predicate always applies; if nil it only applies |
| 378 | Note: TABLE needs to be a proper completion table which obeys predicates." | 378 | if it does not reduce the set of possible completions to nothing. |
| 379 | Note: TABLE needs to be a proper completion table which obeys | ||
| 380 | predicates." | ||
| 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. |