From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65459: completing-read INITIAL-VALUE unaware of COLLECTION and REQUIRE-MATCH Date: Mon, 28 Aug 2023 09:14:46 +0000 Message-ID: <7O5sFds7h8Yr_jSxcsIuhQE2HNN4oiOgWXEAgzP6xP-8eG2q_3eGy4Ek0oP5xVx4HzAEkE7WHTKyqNXKgvcasj5txuT8pjtVSjI6brM8a-I=@protonmail.com> References: Reply-To: Heime Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15309"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gregory Heytings , 65459@debbugs.gnu.org, Eli Zaretskii To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 28 11:16:38 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qaYMQ-0003oL-1f for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Aug 2023 11:16:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaYMA-00005s-UY; Mon, 28 Aug 2023 05:16:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qaYLn-0008WL-6q for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2023 05:16:09 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qaYLk-0005Zx-1T for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2023 05:15:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qaYLq-000460-2N for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2023 05:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Heime Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Aug 2023 09:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65459 X-GNU-PR-Package: emacs Original-Received: via spool by 65459-submit@debbugs.gnu.org id=B65459.169321412215686 (code B ref 65459); Mon, 28 Aug 2023 09:16:02 +0000 Original-Received: (at 65459) by debbugs.gnu.org; 28 Aug 2023 09:15:22 +0000 Original-Received: from localhost ([127.0.0.1]:46971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaYLB-00044v-Qu for submit@debbugs.gnu.org; Mon, 28 Aug 2023 05:15:22 -0400 Original-Received: from mail-4318.protonmail.ch ([185.70.43.18]:34505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaYL9-00044c-6n for 65459@debbugs.gnu.org; Mon, 28 Aug 2023 05:15:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1693214106; x=1693473306; bh=lSnxtTm5KI2okAWgM+DQibr9hnQavk44HB4rpL31J6g=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=rtkJsUEhQ7sJUuqLHvR0I7qBaA5yRHVDYMqoXMx8MdGiyjDedMMbmGigTmGSBLMmT 05OBrAl5dRdKlFHzxTL0ITr6xzGWQMgUHsjPBVwmGJ8Q/r7xXnoct2MEpS2vhDWxul yPBi5VnqpIUSJ8H3QcXQxqGs/t13cS9ASzsNu5kgHEy/m2GzLssXRtAXtS9ZJSyop9 6P97pyf4HCHhcpVGhORJkx9CPQm2TGAWAFvJxMhPbaVH05VaQeYfKC+DAPuUaT88pA q09iBabHxekUqeSepml+cV9z0OO+Xq11VHY0CvePivn6agVGVU7lzSAp2K7ygdisTP MS+q2Vwa0LJ+w== In-Reply-To: Feedback-ID: 57735886:user:proton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268609 Archived-At: ------- Original Message ------- On Monday, August 28th, 2023 at 3:12 PM, Stefan Monnier 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 sp= ecific user > > function? >=20 >=20 > I suggested to accept a `setup-function` argument, which would replace th= e > `minibuffer-with-setup-hook` hack, so instead of >=20 > (completing-read MYPROMPT ... MYINIT-INPUT ...) >=20 > with the new API you could do >=20 > (mynew-completing-read MYPROMPT ... > (lambda () (insert "MYINIT-INPUT")) > ...) >=20 > -- 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 functi= on, would its use enhance what to do with it. Perhaps the different UI would call a = different function?