bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#65348: INITIAL-INPUT in completing-read repeats same entry twice con


From: Christopher Dimech
Subject: bug#65348: INITIAL-INPUT in completing-read repeats same entry twice consecutively
Date: Sun, 20 Aug 2023 08:34:52 +0200

> Sent: Sunday, August 20, 2023 at 6:12 PM
> From: "Michael Heerdegen" <michael_heerdegen@web.de>
> To: 65348@debbugs.gnu.org
> Cc: eliz@gnu.org, heimeborgia@protonmail.com, drew.adams@oracle.com
> Subject: bug#65348: INITIAL-INPUT in completing-read repeats same entry twice 
> consecutively
>
> Heime via "Bug reports for GNU Emacs, the Swiss army knife of text
> editors" <bug-gnu-emacs@gnu.org> writes:
>
> > Can there be the option to place an item from the collection (call it
> > 'INITIAL', 'DEF', 'WHATEVER')
> > that appears as soon as `completing-read` is called ?
>
> If I understand correctly and you want still want to start with a
> prefilled minibuffer: you can still achieve this by using
> `minibuffer-with-setup-hook' - like in
>
> #+begin_src emacs-lisp
> (minibuffer-with-setup-hook (lambda () (insert "BBB"))
>   (completing-read "Input: " (list "AAA" "BBB" "CCC")))
> #+end_src
>
> Michael.

I suggest that the capability of prefilling the minibuffer be reintroduced
for the new scheme as well.  Because from what I see, the deprecated parts
include a feature that will be automatically discarded under the new scheme.

>





reply via email to

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