From: Eli Zaretskii Date: Wed, 4 Jan 2023 17:25:47 +0000 (+0200) Subject: ; Fix documentation of y-or-n-p/yes-or-no-p X-Git-Tag: emacs-29.0.90~838 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8d530ca6542b169cb8f0cd3862cc5d24f68935c8;p=emacs.git ; Fix documentation of y-or-n-p/yes-or-no-p * lisp/subr.el (y-or-n-p): * src/fns.c (Fyes_or_no_p): Doc fix. --- diff --git a/lisp/subr.el b/lisp/subr.el index 9087f9a4044..62f72734e14 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -3535,8 +3535,7 @@ character. This is not possible when using `read-key', but using Return t if answer is \"y\" and nil if it is \"n\". PROMPT is the string to display to ask the question; `y-or-n-p' -adds \" (y or n) \" to it. It does not need to end in space, but -if it does up to one space will be removed. +adds \"(y or n) \" to it. If you bind the variable `help-form' to a non-nil value while calling this function, then pressing `help-char' diff --git a/src/fns.c b/src/fns.c index 51ef1153fb7..1aaf17914a2 100644 --- a/src/fns.c +++ b/src/fns.c @@ -3168,8 +3168,7 @@ DEFUN ("yes-or-no-p", Fyes_or_no_p, Syes_or_no_p, 1, 1, 0, Return t if answer is yes, and nil if the answer is no. PROMPT is the string to display to ask the question; `yes-or-no-p' -adds \"(yes or no) \" to it. It does not need to end in space, but if -it does up to one space will be removed. +adds \"(yes or no) \" to it. The user must confirm the answer with RET, and can edit it until it has been confirmed.