|
From: | Codruț Constantin Gușoi |
Subject: | bug#50811: 28.0.50; Misleading Docstring for read-string function |
Date: | Mon, 27 Sep 2021 04:56:55 +0000 |
Codruț Constantin Gușoi <mail@codrut.pro> writes:
> That's exactly the behaviour I need for renaming a file, for example; a
> prompt pre-filled with the current filename. It's the same UX as in every
> other program that does this sort of functionality and the extra keypress
> makes it harder to use.I wasn't part of the discussions when this happened (I think it was more
than a decade ago), but I think the idea was that users were annoyed
that (in many cases) they had to remove the default completely before
being able to type stuff in.That is, with
(read-string "PROMPT " "This is the very long default")
you have to delete all that before you can type in "foo", which is what
you wanted to say. (Or `C-a C-k' is you're an expert.)Putting the default in the "future history" means that the user can type
"foo" immediately (if they want that), or RET if they want the default,
or `M-n' if they want 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, 2021/09/27
- 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: [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#50743: Emacsclient not tested vs. Local Variables prompt
- 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):