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: Sun, 27 Aug 2023 22:59:06 +0000 Message-ID: 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="27681"; 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 01:00:08 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 1qaOjo-00071m-BD for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Aug 2023 01:00:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaOje-0005ig-8N; Sun, 27 Aug 2023 18:59:58 -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 1qaOjd-0005i9-5b for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 18:59:57 -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 1qaOjc-0007TP-Ti for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 18:59:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qaOji-0002L2-Sa for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 19:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Heime Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Aug 2023 23:00: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.16931771728924 (code B ref 65459); Sun, 27 Aug 2023 23:00:02 +0000 Original-Received: (at 65459) by debbugs.gnu.org; 27 Aug 2023 22:59:32 +0000 Original-Received: from localhost ([127.0.0.1]:46413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaOjE-0002Js-Es for submit@debbugs.gnu.org; Sun, 27 Aug 2023 18:59:32 -0400 Original-Received: from mail-40140.protonmail.ch ([185.70.40.140]:11723) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaOjC-0002Jd-1z for 65459@debbugs.gnu.org; Sun, 27 Aug 2023 18:59:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1693177157; x=1693436357; bh=FT6yc+vbRhebub1pCYIvO1EoDne2gMS3OmMu8jbM/Xk=; 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=i0BgP18FuWJveQHba1R8g2uqcJ31pIHbyEnny4eTD+IFTvhlcC2vBiqRqY+HFoABP wds/C0ER6GILCyNiz+XeOSgF+JNVCRvws//wcYXkFpLnfx6YPLkM1TXO0NDqwJFouG MrDY7wuEdjeLZG4fshfqCYToTGdDJwobkyz5QNJoA5qJ/mGWGDZQmiQ5+QSe8FcQ0m Ib6Qh2tn4deZPB/JaVrm+V/eMOhZJ+PxevZ/pxUwOx7Ren5kQTvF400LV0L8atpUah D4InvrAUZ+qctUQDjMhNIrGUfSOS9UExwzLKj1FFJnteFEtLme/AoUrg4ZhU+sgB5v EtM1WJbN3Zj1w== 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:268596 Archived-At: Sent with Proton Mail secure email. ------- Original Message ------- On Monday, August 28th, 2023 at 9:48 AM, Stefan Monnier wrote: > > There are two audiences in all this. Programmers who write libraries > > and users who write functions for their own use. The thought is that > > if `read-file-name` has capability of minibuffer prefilling, then minib= uffer > > prefilling capability should be available for them to use without havin= g > > them convince anybody why they want it to happen. >=20 >=20 > As I said, as a matter of principle and general design, Emacs goes to > great lengths to make sure users can do even what we don't want them > to do (except make our code proprietary). So of course it is and will > remain possible for users to write code that prefills the minibuffer. >=20 > The question is how to make an API that encourages coders to write code i= n > such a way that the behavior is fairly homogeneous between packages and > such that users can customize the behavior to be the way they like it. > = Stefan Yes, the problematic part is how to make the API without making life too di= fficult for those who want to digress from our point of view. It might happen they= find a=20 good case for digressing or figure out whether our encouragement makes sens= e to them. For using 'completing-read' without INITIAL as argument, do you have a plan= of how=20 minibuffer prefilling could be activated and set for use within some specif= ic user function?=20