diff options
author | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2011-07-02 18:07:30 +0200 |
---|---|---|
committer | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2011-07-02 18:07:30 +0200 |
commit | 08549772c2c28b138afc71718000ae76f0bab797 (patch) | |
tree | e80d771b16abfd068bafc25a6568ba4cf5cf596b /lisp/minibuffer.el | |
parent | 48954a094fa8e0e8022fd2d6bd3a45967e46e23f (diff) | |
download | emacs-08549772c2c28b138afc71718000ae76f0bab797.tar.gz |
* minibuffer.el (completion-in-region): Document PREDICATE
(bug#7136).
Diffstat (limited to 'lisp/minibuffer.el')
-rw-r--r-- | lisp/minibuffer.el | 4 |
1 files changed, 3 insertions, 1 deletions
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 |