1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00

* lisp/subr.el (read-number): Document collision with 'format-prompt'.

This commit is contained in:
Joseph Turner 2024-11-09 11:15:25 -08:00 committed by Eli Zaretskii
parent 68337106f9
commit c29c54410e

View File

@ -3419,9 +3419,10 @@ with Emacs. Do not call it directly in your own packages."
(defun read-number (prompt &optional default hist) (defun read-number (prompt &optional default hist)
"Read a numeric value in the minibuffer, prompting with PROMPT. "Read a numeric value in the minibuffer, prompting with PROMPT.
DEFAULT specifies a default value to return if the user just types RET. DEFAULT specifies a default value to return if the user just types RET.
The value of DEFAULT is inserted into PROMPT. For historical reasons, the value of DEFAULT is always inserted into
HIST specifies a history list variable. See `read-from-minibuffer' PROMPT, so it's recommended to use `format' instead of `format-prompt'
for details of the HIST argument. to generate PROMPT. HIST specifies a history list variable. See
`read-from-minibuffer' for details of the HIST argument.
This function is used by the `interactive' code letter \"n\"." This function is used by the `interactive' code letter \"n\"."
(let ((n nil) (let ((n nil)