From 08549772c2c28b138afc71718000ae76f0bab797 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Sat, 2 Jul 2011 18:07:30 +0200 Subject: [PATCH] * minibuffer.el (completion-in-region): Document PREDICATE (bug#7136). --- lisp/ChangeLog | 3 +++ lisp/minibuffer.el | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.5