From: Lars Ingebrigtsen Date: Sat, 2 Jul 2022 20:03:06 +0000 (+0200) Subject: REQUIRE-MATCH doc string clarification X-Git-Tag: emacs-29.0.90~1447^2~1256 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=782e48b3dbae3d30d4fd8f2be90e9d9a0114210a;p=emacs.git 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. --- diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 69a10ce4e2d..8a7da41a3b1 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 85d6ec44349..c2e270a450d 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.