diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2023-05-12 12:45:32 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2023-05-12 12:45:32 +0200 |
commit | cbb59267c757b747c48a2690f96073614e8b4fd4 (patch) | |
tree | 60773448d227eabffbfd6fdc6314db3ce44961db /lisp/subr.el | |
parent | c9cf673d505b2dd9a666fed50d7f3b2f7dff163f (diff) | |
download | emacs-cbb59267c757b747c48a2690f96073614e8b4fd4.tar.gz |
Add trailing space to PROMPT in yes-or-no-p
* doc/lispref/minibuf.texi (Yes-or-No Queries): Describe PROMPT
massage for y-or-n-p and yes-or-no-p.
* lisp/subr.el (y-or-n-p): Adapt docstring.
* src/fns.c (Fyes_or_no_p): Add trailing space to PROMPT if
needed. (Bug#63399)
Diffstat (limited to 'lisp/subr.el')
-rw-r--r-- | lisp/subr.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 0501fc67a3e..a52abb38772 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -3590,7 +3590,9 @@ confusing to some users.") 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. +adds \"(y or n) \" to it. If PROMPT is a non-empty string, and +it ends with a non-space character, a space character will be +appended to it. If you bind the variable `help-form' to a non-nil value while calling this function, then pressing `help-char' |