emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 8d530ca654: ; Fix documentation of y-or-n-p/yes-or-no-p


From: Eli Zaretskii
Subject: emacs-29 8d530ca654: ; Fix documentation of y-or-n-p/yes-or-no-p
Date: Wed, 4 Jan 2023 12:26:12 -0500 (EST)

branch: emacs-29
commit 8d530ca6542b169cb8f0cd3862cc5d24f68935c8
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; 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.
---
 lisp/subr.el | 3 +--
 src/fns.c    | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/lisp/subr.el b/lisp/subr.el
index 9087f9a404..62f72734e1 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 51ef1153fb..1aaf17914a 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.



reply via email to

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