1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-19 18:13:55 +00:00

* minibuffer.el (completion-in-region): Document PREDICATE

(bug#7136).
This commit is contained in:
Lars Magne Ingebrigtsen 2011-07-02 18:07:30 +02:00
parent 48954a094f
commit 08549772c2
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2011-07-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
* minibuffer.el (completion-in-region): Document PREDICATE
(bug#7136).
* info-look.el (info-lookup-add-help): Clarify that ARGS is a list
of keyword/argument pairs (bug#6904).

View File

@ -1442,7 +1442,9 @@ we entered `completion-in-region-mode'.")
(defun completion-in-region (start end collection &optional predicate)
"Complete the text between START and END using COLLECTION.
Return nil if there is no valid completion, else t.
Point needs to be somewhere between START and END."
Point needs to be somewhere between START and END.
PREDICATE (a function called with no arguments) says when to
exit."
(assert (<= start (point)) (<= (point) end))
(with-wrapper-hook
;; FIXME: Maybe we should use this hook to provide a "display