From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65459: completing-read INITIAL-VALUE unaware of COLLECTION and REQUIRE-MATCH Date: Wed, 23 Aug 2023 14:29:00 +0300 Message-ID: <83jztmro8z.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4084"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65459@debbugs.gnu.org To: Heime , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 23 13:29:22 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 1qYm37-0000tj-Rf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Aug 2023 13:29:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYm2w-0000nV-78; Wed, 23 Aug 2023 07:29:10 -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 1qYm2l-0000mg-5O for bug-gnu-emacs@gnu.org; Wed, 23 Aug 2023 07:29:02 -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 1qYm2k-0006Tq-Tn for bug-gnu-emacs@gnu.org; Wed, 23 Aug 2023 07:28:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qYm2n-00061y-Vu for bug-gnu-emacs@gnu.org; Wed, 23 Aug 2023 07:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Aug 2023 11:29:01 +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.169279013623171 (code B ref 65459); Wed, 23 Aug 2023 11:29:01 +0000 Original-Received: (at 65459) by debbugs.gnu.org; 23 Aug 2023 11:28:56 +0000 Original-Received: from localhost ([127.0.0.1]:33015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYm2i-00061e-9v for submit@debbugs.gnu.org; Wed, 23 Aug 2023 07:28:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYm2f-00061P-6k for 65459@debbugs.gnu.org; Wed, 23 Aug 2023 07:28:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYm2V-0006TN-Ka; Wed, 23 Aug 2023 07:28:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6ndCUylhLV+Kcx5+mUUjeBkCaZ+SFP2ZbhfC19mqFwY=; b=XpCAl5w2q8Ko v1I90pPaleiWnNi+guxIhCw0jl/ne8sciD0FVeV99Se69bCpKP44eT/adINNvkqcltraiuAPSqF6E zLNmFkzIo3bGqWN35yukFxw2c1VXHraG4ese8IbJ65Uo+/qdBMRDwEJ//tLTYnXbkXpxGpQGoley2 MGH5dPfOnjVvAsi67IJnlAcXfa6NZQbF8/QsX5FYnkBzcwXCPCUMnnzDqz6eYAEf4DYt1ReaehJ3Y yZv0oYukFWqakojcPCR9ReZq9Svzn1pLQotLW0bkLAFNiWcAa2zha5PPIDqyDUqgUNCSIqP+HmR5s ZFzUQSCjJxS118ZS77Y/Yw==; In-Reply-To: (bug-gnu-emacs@gnu.org) 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:268225 Archived-At: > Date: Tue, 22 Aug 2023 22:04:06 +0000 > From: Heime via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > The completing-read function in Emacs allows you to create a simple > interactive prompt where the user can type to complete a string based > on a given collection. REQUIRE-MATCH determines whether the input > must match an item in the collection. > > I find the design of completing-read as half-baked because INITIAL-VALUE > always works as an independent entity, always unaware of COLLECTION and > REQUIRE-MATCH "Half-baked" is a harsh qualification. I don't think it makes your arguments more attractive or convincing, so my advice is to avoid such derogatory epithets on issues which you have just recently learned and about which you might still be missing quite a lot. In any case, from where I stand, any significant changes in the API of completing-read that are backward incompatible are out of the question at this stage, and if this discussion leads to a conclusion that an incompatible API could be useful, it will have to be a separate API. > Thus, there exists no capabilities for possible interactions that could > 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. > > As for the cycling part, no proper functionality has been introduced. INITIAL-INPUT > is there just to insert something to the minibuffer without any regard to possible > restriction that one might want imposed on it and what gets displayed after INITIAL-VALUE. Adding Stefan.