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#65348: INITIAL-INPUT in completing-read repeats same entry twice consecutively Date: Sun, 20 Aug 2023 06:23:59 +0000 Message-ID: References: <7D2p2XmGzWwhYjrI_PaUsn8r_NaQf-B0eAf7AmeRIhBEl84z79j_jKky-Lqlt6nc52SQ7T5yrL9OdqUzou1Mh3zQzgJx-SV6kIvc9Km8bDg=@protonmail.com> <83a5un35h6.fsf@gnu.org> <83o7j2yh47.fsf@gnu.org> <571_jSaUteaY0xDvqYdtM-FS0QLvAyOLY94AUDK81h4Fdn0jF869iyYXLHgsEmj1cEMNt6QHJnfCKY-__59S3R8z4SG03sXu9rO6mQa8nwg=@protonmail.com> <87sf8es0m0.fsf@web.de> 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="23163"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, 65348@debbugs.gnu.org, drew.adams@oracle.com To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 20 08:25: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 1qXbsE-0005qh-6I for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Aug 2023 08:25:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXbry-0002ZJ-F4; Sun, 20 Aug 2023 02:25:02 -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 1qXbrw-0002Yt-IG for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 02:25: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 1qXbrw-0004Wy-8l for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 02:25:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXbrx-0000cx-M5 for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 02:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Heime Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Aug 2023 06:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65348 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 65348-submit@debbugs.gnu.org id=B65348.16925126532328 (code B ref 65348); Sun, 20 Aug 2023 06:25:01 +0000 Original-Received: (at 65348) by debbugs.gnu.org; 20 Aug 2023 06:24:13 +0000 Original-Received: from localhost ([127.0.0.1]:52776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXbrB-0000bT-DP for submit@debbugs.gnu.org; Sun, 20 Aug 2023 02:24:13 -0400 Original-Received: from mail-4319.protonmail.ch ([185.70.43.19]:53871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXbr8-0000bB-Dh for 65348@debbugs.gnu.org; Sun, 20 Aug 2023 02:24:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1692512642; x=1692771842; bh=cXXp30I0qq6N6snHe3CKw7E5k/NbIR5Zs950s3iAWsQ=; 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=G4pHoHDfR92cccqnoi+Xo0D4F8xfClSeU24/mIveEL/pwhZa8h+B84yoz9W8FXm3b S4OQ/59642JoeP4bxFprp6fsHG7oZL5qqPFtc6TXIfz1tgVxShcoqjTQuI3Zg8Xqs1 pn4SevvxdVCIFck4YXY+UvzBIfBqMaK7MvSLJTQWceR4uxgPvxAPLGu69UWTm7YlAv qCve4aM/2/a4tAEXfhPAq1CwTjLL+O2FOZy902yzYgOHxEJ4fB420g7Ttu3ZM1oE28 vC/wHfWr20JjsnIwhj7EuggYOvSg8uj0PtWcln7Hf1g0qL/hrvN4ZK9635Typ2Rlvu DtLATqU6LaVpw== In-Reply-To: <87sf8es0m0.fsf@web.de> 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:267948 Archived-At: ------- Original Message ------- On Sunday, August 20th, 2023 at 6:12 PM, Michael Heerdegen wrote: > Heime via "Bug reports for GNU Emacs, the Swiss army knife of text > editors" bug-gnu-emacs@gnu.org writes: >=20 > > Can there be the option to place an item from the collection (call it > > 'INITIAL', 'DEF', 'WHATEVER') > > that appears as soon as `completing-read` is called ? >=20 >=20 > If I understand correctly and you want still want to start with a > prefilled minibuffer: you can still achieve this by using > `minibuffer-with-setup-hook' - like in >=20 > #+begin_src emacs-lisp > (minibuffer-with-setup-hook (lambda () (insert "BBB")) > (completing-read "Input: " (list "AAA" "BBB" "CCC"))) > #+end_src >=20 > Michael. How complicated my friend from the old single call to 'completing-read'. I cannot use such thing in all my interactive call functions. I have seen so many deliberation about keeping existing functionality for the old chap= s, yet showing complete disregard on such possibilities on this refilled minib= uffer capability. The claim that life is too short to give a fuck does not abode well. =20