|
From: | Codruț Constantin Gușoi |
Subject: | bug#50811: 28.0.50; Misleading Docstring for read-string function |
Date: | Mon, 27 Sep 2021 04:35:17 +0000 |
Codruț Constantin Gușoi <mail@codrut.pro> writes:
> If non-nil, second arg INITIAL-INPUT is a string to insert before reading.
> This argument has been superseded by DEFAULT-VALUE and should normally be nil
> in new code. It behaves as INITIAL-CONTENTS in `read-from-minibuffer' (which
> see).
> ```
>
> This is misleading since INITIAL-INPUT behaves differently from DEFAULT-VALUE:The doc string isn't claiming that INITIAL-INPUT behaves like
DEFAULT-VALUE -- it says that you shouldn't use INITIAL-INPUT.The point is that we want to move away from pre-filled prompts in Emacs,
and instead put the default in the "future history", i.e., say(read-string "PROMPT " nil nil "B")
and then the user should `M-n' to edit the default.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] Current Thread [Next in Thread]
- bug#50811: 28.0.50; Misleading Docstring for read-string function, Codruț Constantin Gușoi, 2021/09/26
- bug#50811: 28.0.50; Misleading Docstring for read-string function, Lars Ingebrigtsen, 2021/09/27
- bug#50811: 28.0.50; Misleading Docstring for read-string function, Codruț Constantin Gușoi <=
- bug#50811: 28.0.50; Misleading Docstring for read-string function, Lars Ingebrigtsen, 2021/09/27
- bug#50811: 28.0.50; Misleading Docstring for read-string function, Codruț Constantin Gușoi, 2021/09/27
- bug#50811: 28.0.50; Misleading Docstring for read-string function, Lars Ingebrigtsen, 2021/09/27
- bug#50811: [External] : bug#50811: 28.0.50; Misleading Docstring for read-string function, Drew Adams, 2021/09/27
- bug#50811: [External] : bug#50811: 28.0.50; Misleading Docstring for read-string function, Drew Adams, 2021/09/27
- Prev by Date: bug#50811: 28.0.50; Misleading Docstring for read-string function
- Next by Date: bug#50811: 28.0.50; Misleading Docstring for read-string function
- Previous by thread: bug#50811: 28.0.50; Misleading Docstring for read-string function
- Next by thread: bug#50811: 28.0.50; Misleading Docstring for read-string function
- Index(es):