From 782e48b3dbae3d30d4fd8f2be90e9d9a0114210a Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 2 Jul 2022 22:03:06 +0200 Subject: [PATCH] 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 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. -- 2.39.2