[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: completing-read depricated initial-input
From: |
Arash Esbati |
Subject: |
Re: completing-read depricated initial-input |
Date: |
Tue, 21 Jun 2022 20:21:59 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 |
Drew Adams <drew.adams@oracle.com> writes:
> 3. The "argument" for deprecating it amounted to only
> a statement that stylistically some preferred that
> only the DEF (default value) argument be used.
I thought the argument was "INITIAL-INPUT in too intrusive in the
minibuffer, most notably, when it's not what the user wants, and then
the hassle with C-a C-k and such begins". And if I compare:
(let ((default "FOO"))
(completing-read (format "Prompt (default %s): " default)
'("FOO" "BAR" "BAZ")
nil nil nil nil default))
where I hit ENTER or TAB makes more sense to me than this:
(let ((default "FOO"))
(completing-read "Prompt: "
'("FOO" "BAR" "BAZ")
nil nil default))
where I hit ENTER or have to delete the entry before I can proceed with
TAB.
As a personal note, the INITIAL-INPUT was something in AUCTeX which
bugged for me for a long time, especially in queries for length
arguments. I can't say how often I've deleted "1.0\linewidth" in my
life.
Best, Arash
Re: completing-read depricated initial-input, Robert Pluim, 2022/06/21
Re: completing-read depricated initial-input, Christopher Dimech, 2022/06/21
- RE: [External] : Re: completing-read depricated initial-input, Drew Adams, 2022/06/21
- Re: completing-read depricated initial-input,
Arash Esbati <=
- Re: completing-read depricated initial-input, Emanuel Berg, 2022/06/21
- RE: [External] : Re: completing-read depricated initial-input, Drew Adams, 2022/06/21
- Re: completing-read depricated initial-input, Arash Esbati, 2022/06/21
- RE: [External] : Re: completing-read depricated initial-input, Drew Adams, 2022/06/21
- Re: [External] : Re: completing-read depricated initial-input, Emanuel Berg, 2022/06/21
- RE: [External] : Re: completing-read depricated initial-input, Drew Adams, 2022/06/22
- standard libraries again (was: Re: [External] : Re: completing-read depricated initial-input), Emanuel Berg, 2022/06/22
- RE: standard libraries again (was: Re: [External] : Re: completing-read depricated initial-input), Drew Adams, 2022/06/22
- Re: standard libraries again (was: Re: [External] : Re: completing-read depricated initial-input), Emanuel Berg, 2022/06/22
- RE: standard libraries again (was: Re: [External] : Re: completing-read depricated initial-input), Drew Adams, 2022/06/22