[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: completing-read depricated initial-input

From: carlmarcos
Subject: Re: completing-read depricated initial-input
Date: Tue, 21 Jun 2022 13:15:00 +0200 (CEST)

 Sent with Tutanota, enjoy secure & ad-free emails. 

Jun 21, 2022, 10:26 by

>>>>>> On Tue, 21 Jun 2022 09:56:59 +0200 (CEST), carlmarcos--- via Users list 
>>>>>> for the GNU Emacs text editor <> said:
> >> Have been reading the docstring of `completing-read`.
>  >> (completing-read PROMPT COLLECTION &optional PREDICATE REQUIRE-MATCH
>  >> INITIAL-INPUT states that this feature is deprecated - it is best to pass 
> nil
>  >> for INITIAL-INPUT and supply the default value DEF instead.  
>  >> When do you plan to remove the `INITIAL-INPUT` argument from 
> `completing-read`?
> No such plan exists. At best Emacs could start ignoring that arg, but
> we canʼt just change the signature of such a public function.
> Robert
Have put some explanation on the value of keeping the functionality of 
`INITIAL-INPUT`, rather than
stopping it having any effect.  I can see the value of using an initial value 
for certain situations, rather than  always having the field empty, 
particularly when one has `REQUIRE-MATCH` being `t`.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]