emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master db12b38: Clarify test-completion doc string


From: Lars Ingebrigtsen
Subject: master db12b38: Clarify test-completion doc string
Date: Thu, 16 Sep 2021 08:18:41 -0400 (EDT)

branch: master
commit db12b386537f0a0d36a4759c625ba643e391e4f2
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Clarify test-completion doc string
    
    * src/minibuf.c (Ftest_completion): Clarify what it means to be a
    valid completion (bug#50583).
---
 src/minibuf.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/minibuf.c b/src/minibuf.c
index c9134ef..a0ba867 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -2055,7 +2055,11 @@ See also `completing-read-function'.  */)
 /* Test whether TXT is an exact completion.  */
 DEFUN ("test-completion", Ftest_completion, Stest_completion, 2, 3, 0,
        doc: /* Return non-nil if STRING is a valid completion.
+For instance, if COLLECTION is a list of strings, this is true if
+STRING appears in the list and PREDICATE is satisfied.
+
 Takes the same arguments as `all-completions' and `try-completion'.
+
 If COLLECTION is a function, it is called with three arguments:
 the values STRING, PREDICATE and `lambda'.  */)
   (Lisp_Object string, Lisp_Object collection, Lisp_Object predicate)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]