From 0f3c690650e30201c725186bff3b91ef8fa4ee19 Mon Sep 17 00:00:00 2001 From: Joseph Turner Date: Wed, 6 Nov 2024 11:53:42 -0800 Subject: [PATCH] Document behavior of format-prompt with read-number * doc/lispref/minibuf.texi (Text from Minibuffer): Update info manual. --- doc/lispref/minibuf.texi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi index c5b9176d628..8bb53f6d831 100644 --- a/doc/lispref/minibuf.texi +++ b/doc/lispref/minibuf.texi @@ -491,6 +491,10 @@ Text from Minibuffer If @var{default} is @code{nil}, there is no default value, and therefore no ``default value'' string is included in the result value. +For historical reasons, @code{read-number} always adds its +@code{default} argument to its prompt, so the @var{default} argument of +@code{format-prompt} should be @code{nil} when its return value will be +passed to @code{read-number}. If @var{default} is a non-@code{nil} list, the first element of the list is used in the prompt. -- 2.46.0