From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier 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 14:01:30 -0400 Message-ID: References: <9K_-oO834AqSJEo_pqDrfj7Q1O1vcqy19pPVpFDuVl5tfCjWqlLa8cRgM16uDFBEt63VYEUkj7ueLAZ8XLrfsZAuRPLvU4Mx3von1r73fEE=@protonmail.com> <596919925b4762b66be8@heytings.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18824"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gregory Heytings , 65459@debbugs.gnu.org, Eli Zaretskii To: Heime Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 27 20:02:18 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 1qaK5a-0004fV-6o for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Aug 2023 20:02:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaK5I-0001rH-Ph; Sun, 27 Aug 2023 14:02:00 -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 1qaK5G-0001qI-3v for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 14:01:58 -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 1qaK5F-0000Di-5F for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 14:01:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qaK5L-0007bS-01 for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 14:02:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Aug 2023 18:02: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.169315931129199 (code B ref 65459); Sun, 27 Aug 2023 18:02:02 +0000 Original-Received: (at 65459) by debbugs.gnu.org; 27 Aug 2023 18:01:51 +0000 Original-Received: from localhost ([127.0.0.1]:46211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaK58-0007at-Kt for submit@debbugs.gnu.org; Sun, 27 Aug 2023 14:01:50 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:9717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaK56-0007ab-9h for 65459@debbugs.gnu.org; Sun, 27 Aug 2023 14:01:49 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id BFBE11000E5; Sun, 27 Aug 2023 14:01:36 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1693159291; bh=AxCRIQuyrFyiCmn+WQ8++0CRzbfAMIsSyZFvbWRSmeE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=oCAIxrM9X5Cz1Di42WUUyPWnsnO2FfKgvk9b1bCcLDnBZkKpA5MN4D/7rwlStOUYz bxE6Kqw84vOJZ2VAzsCEPeTpZqGplAtHk2dNC1PuGY69NHe7J/QZ4eSQFP7idNpCq1 HFmus4ps2oXTTnphT8lQDbagwMJWNqzi/nGw5T1Rlr7wRmLsF+PzciJlUMBrnTwugC 9ZfaTm+MSKPJdK7XTCUyDdb/IexfNoH6KP2Y+omcnfNL1x9kzu7DSRCQayrJQUjigf /jVHKFQqn94jBmbOk8JKlSvNlCaEjGpKi1a6f2teUx3+1b+9Mu4Bm7kP1uiyNMD627 yN7LNly15j0vA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 89D6510006B; Sun, 27 Aug 2023 14:01:31 -0400 (EDT) Original-Received: from pastel (unknown [108.175.234.188]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 59D0C1203A2; Sun, 27 Aug 2023 14:01:31 -0400 (EDT) In-Reply-To: (Heime's message of "Sun, 27 Aug 2023 16:35:33 +0000") 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:268580 Archived-At: >> Whether the default only shows up when instructed is a UI issue, which >> can/should be under control of a UI customization. - Stefan > I would need an example. Suppose one changes the UI customization, would that > apply to all calls of that function ? I would want prefilling occasionally. > Would that be possible ? There are some cases, such as `read-file-name` where we do want some prefilling, so of course it's possible, but it has to be linked to some specific property of the thing we're requesting from the user and how it relates to the string with which we want to prefill the buffer. So it goes back to the question of why you want this specific call to `completing-read` to be prefilled. The answer shouldn't be "because I prefer it this way" (that answer should be satisfied instead by a customization setting since it may not apply to other users of that code). E.g. in the case of `read-file-name` it's because in 99% of the cases the end result wants to include all or most of that prefilled string. > All these UI accept any entries by the user. I don't know what you mean by that. > I am of the school of thought that doing so automatically is also > a valid operation. And I didn't understand this part either. Stefan