From: Lars Magne Ingebrigtsen Date: Sat, 2 Jul 2011 16:07:30 +0000 (+0200) Subject: * minibuffer.el (completion-in-region): Document PREDICATE X-Git-Tag: emacs-pretest-24.0.90~104^2~152^2~238 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=08549772c2c28b138afc71718000ae76f0bab797;p=emacs.git * minibuffer.el (completion-in-region): Document PREDICATE (bug#7136). --- 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 + * 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