emacs-diffs
[Top][All Lists]
Advanced

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

master 782e48b3db: REQUIRE-MATCH doc string clarification


From: Lars Ingebrigtsen
Subject: master 782e48b3db: REQUIRE-MATCH doc string clarification
Date: Sat, 2 Jul 2022 16:03:19 -0400 (EDT)

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

    REQUIRE-MATCH doc string clarification
    
    * src/minibuf.c (Fcompleting_read):
    * lisp/minibuffer.el (read-file-name): Clarify what the return
    value is in the REQUIRE-MATCH function case.
---
 lisp/minibuffer.el | 5 +++--
 src/minibuf.c      | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 69a10ce4e2..8a7da41a3b 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -3160,8 +3160,9 @@ Fourth arg MUSTMATCH can take the following values:
   input, but she needs to confirm her choice if she called
   `minibuffer-complete' right before `minibuffer-complete-and-exit'
   and the input is not an existing file.
-- a function, which will be called with the input as the argument.
-  If it returns a non-nil value, the minibuffer is exited with that value.
+- a function, which will be called with the input as the
+  argument.  If the function returns a non-nil value, the
+  minibuffer is exited with that argument as the value.
 - anything else behaves like t except that typing RET does not exit if it
   does non-null completion.
 
diff --git a/src/minibuf.c b/src/minibuf.c
index 85d6ec4434..c2e270a450 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -2011,8 +2011,9 @@ REQUIRE-MATCH can take the following values:
   input, but she needs to confirm her choice if she called
   `minibuffer-complete' right before `minibuffer-complete-and-exit'
   and the input is not an element of COLLECTION.
-- a function, which will be called with the input as the parameter.
-  If it returns a non-nil value, the minibuffer is exited with that value.
+- a function, which will be called with the input as the
+  argument.  If the function returns a non-nil value, the
+  minibuffer is exited with that argument as the value.
 - anything else behaves like t except that typing RET does not exit if it
   does non-null completion.
 



reply via email to

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