[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gradually replacing INITIAL-INPUT in minibuffer
From: |
Tassilo Horn |
Subject: |
Re: Gradually replacing INITIAL-INPUT in minibuffer |
Date: |
Fri, 25 Feb 2022 21:11:05 +0100 |
User-agent: |
mu4e 1.7.9; emacs 29.0.50 |
Arash Esbati <arash@gnu.org> writes:
>> Yes, that's how the original `completing-read' does it. Not sure if
>> we need to follow that conservative approach, though. We could just
>> rename the INITIAL-INPUT argument to DEFAULT and change the behavior
>> accordingly.
>
> Thanks for your response.
>
> We can't simply drop INITIAL-INPUT for `TeX-arg-length', it used for
> example in `TeX-arg-define-length' where it really makes sense.
Ah, I see.
>> Or is there any usage where initial-input is clearly superior to a
>> default value?
>
> Not from my POV. But my first reflex is to keep the INITIAL-INPUT,
> you'll never know ...
Yes. But if you see that it's not used very much or the majority of
usages would be better off with a DEFALT, we could also switch the
current INITIAL-INPUT with a DEFAULT and add a new &optional
INITIAL-INPUT at the end.
Bye,
Tassilo