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

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

bug#65459: completing-read INITIAL-VALUE unaware of COLLECTION and REQUI


From: Heime
Subject: bug#65459: completing-read INITIAL-VALUE unaware of COLLECTION and REQUIRE-MATCH
Date: Mon, 28 Aug 2023 09:14:46 +0000

------- Original Message -------
On Monday, August 28th, 2023 at 3:12 PM, Stefan Monnier 
<monnier@iro.umontreal.ca> wrote:


> > 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

The function "mynew-completing-read", is that something users have to write and 
use
or would it be provided by emacs release ?  Why the preference for a function, 
would
its use enhance what to do with it.  Perhaps the different UI would call a 
different
function?






reply via email to

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