summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2011-07-02 18:07:30 +0200
committerLars Magne Ingebrigtsen <larsi@gnus.org>2011-07-02 18:07:30 +0200
commit08549772c2c28b138afc71718000ae76f0bab797 (patch)
treee80d771b16abfd068bafc25a6568ba4cf5cf596b /lisp
parent48954a094fa8e0e8022fd2d6bd3a45967e46e23f (diff)
downloademacs-08549772c2c28b138afc71718000ae76f0bab797.tar.gz
* minibuffer.el (completion-in-region): Document PREDICATE
(bug#7136).
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/minibuffer.el4
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cf520f5d21b..cd1ec32d077 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -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).
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 1700b90eb1e..d62b377954d 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -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