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: Tue, 22 Aug 2023 22:04:06 +0000 Message-ID: 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="34507"; mail-complaints-to="usenet@ciao.gmane.io" To: 65459@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 23 00:05:36 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 1qYZVH-0008lB-Vc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Aug 2023 00:05:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYZUj-00011n-IH; Tue, 22 Aug 2023 18:05:01 -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 1qYZUh-00011e-Vs for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2023 18:05:00 -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 1qYZUh-00082m-NG for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2023 18:04:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qYZUk-0004Ft-Fi for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2023 18:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Heime Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Aug 2023 22:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65459 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.169274188216323 (code B ref -1); Tue, 22 Aug 2023 22:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Aug 2023 22:04:42 +0000 Original-Received: from localhost ([127.0.0.1]:60568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYZUQ-0004FD-Cn for submit@debbugs.gnu.org; Tue, 22 Aug 2023 18:04:42 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:44054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYZUO-0004F0-Rr for submit@debbugs.gnu.org; Tue, 22 Aug 2023 18:04:41 -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 1qYZUG-0000wb-Ai for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2023 18:04:32 -0400 Original-Received: from mail-40137.protonmail.ch ([185.70.40.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYZUD-00081M-M2 for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2023 18:04:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1692741867; x=1693001067; bh=H45OzXHxFxj/UduQCG/CqIznIBVmqZaGo6FF4s69WjY=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=da77cYc6h86WsDlqaQ6az5q4byJ6zI0C5dZDKJhuasaeb1GakcWNy/BmdUgHiBsaT RBr5d2OywMSnWAsnghhlEpxHR7fpbapR88A3mUnKKXj1kecqMjLYtKRTbY/EwPUSlM GUK0X4/XrnfIPdGidHMho2xAimCbY1vIFJGF0103tGY26gOrVZm6XblancoUqe4Mg9 FDKjRAZlQlnsB7muf4EqMz320ruENdl1r3b0Jle1y8zZWjfkelMbSKGJEVh3OSV3tj 1zG5Ivw/phDdBhV0kNYR++623hhjhaieWcSCfICPriVSXfK+zhi6NaMF7b8Mkmpzwt +MKc3g/gMRj/A== Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.40.137; envelope-from=heimeborgia@protonmail.com; helo=mail-40137.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:268188 Archived-At: The completing-read function in Emacs allows you to create a simple=20 interactive prompt where the user can type to complete a string based on a given collection. REQUIRE-MATCH determines whether the input=20 must match an item in the collection. I find the design of completing-read as half-baked because INITIAL-VALUE=20 always works as an independent entity, always unaware of COLLECTION and=20 REQUIRE-MATCH Thus, there exists no capabilities for possible interactions that could=20 influence how the completion works. For instance, suppose you want INITIAL-INPUT to be takes from collection, and then have cycling start from a certain element after INITIAL-INPUT is displayed. You can't. The only thing you can do is select an option by automatically completing as much as possible. =20 As for the cycling part, no proper functionality has been introduced. INIT= IAL-INPUT is there just to insert something to the minibuffer without any regard to p= ossible=20 restriction that one might want imposed on it and what gets displayed after= INITIAL-VALUE. =20