GNU bug report logs - #65459
completing-read INITIAL-VALUE unaware of COLLECTION and REQUIRE-MATCH

Previous Next

Package: emacs;

Reported by: Heime <heimeborgia <at> protonmail.com>

Date: Tue, 22 Aug 2023 22:05:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Heime <heimeborgia <at> protonmail.com>
Cc: Gregory Heytings <gregory <at> heytings.org>, 65459 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: bug#65459: completing-read INITIAL-VALUE unaware of COLLECTION and REQUIRE-MATCH
Date: Sun, 27 Aug 2023 23:12:49 -0400
> For using 'completing-read' without INITIAL as argument, do you have a plan of how 
> minibuffer prefilling could be activated and set for use within some specific user
> function? 

I suggested to accept a `setup-function` argument, which would replace the
`minibuffer-with-setup-hook` hack, so instead of

    (completing-read MYPROMPT ... MYINIT-INPUT ...)

with the new API you could do

    (mynew-completing-read MYPROMPT ...
                           (lambda () (insert "MYINIT-INPUT"))
                           ...)

-- Stefan





This bug report was last modified 1 year and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.