From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.bugs Subject: bug#65348: INITIAL-INPUT in completing-read repeats same entry twice consecutively Date: Sun, 20 Aug 2023 08:34:52 +0200 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> 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="37265"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, heimeborgia@protonmail.com, 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:36:37 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 1qXc3B-0009VW-7o for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Aug 2023 08:36:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXc2x-0005AI-QF; Sun, 20 Aug 2023 02:36:25 -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 1qXc2c-00054D-A5 for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 02:36:03 -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 1qXc2a-0006iK-NS for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 02:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXc2c-00013f-3z for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 02:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christopher Dimech Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Aug 2023 06:36:02 +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.16925133293987 (code B ref 65348); Sun, 20 Aug 2023 06:36:02 +0000 Original-Received: (at 65348) by debbugs.gnu.org; 20 Aug 2023 06:35:29 +0000 Original-Received: from localhost ([127.0.0.1]:52841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXc24-00012F-Lm for submit@debbugs.gnu.org; Sun, 20 Aug 2023 02:35:28 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:46853) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXc21-00011s-Oc for 65348@debbugs.gnu.org; Sun, 20 Aug 2023 02:35:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1692513292; x=1693118092; i=dimech@gmx.com; bh=/QJDc3w9uuQMp4wihlVg7ILI5Vy7xACh2GQ7pweiO74=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Hplt17JKNCSKMv8/u4MBFY8VxnJlKVfwPePLHQgNc284Y+rgspmgh3pj46F3blwD8v1RWln j7rWb2SBq2I2D8sqgTsFVNyLIbKcRou6sSLIrwg+xGgg2LDgFfm3H9Bn6WShSnWYhRTNr3c0H AqqaIy/eQNJLHZtA5vtVY5Kj+URwyl46D9AUNDAOtU/yup4TCiIr/8RRxlwVGhyAzKjKi/GRH 5i/VcWD73n4KG+sDNpwLHqA6M/3hETu8q4XAbhMT/4ht/T75Vr+cIkX5OZYlEn5PBJreQcXYH YUzkYjB4r1HfY64sM77y+LQu6ZQj9upT83dQa0mF2bo7JhvpefQQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [141.8.81.247] ([141.8.81.247]) by web-mail.gmx.net (3c-app-mailcom-bs10.server.lan [172.19.170.178]) (via HTTP); Sun, 20 Aug 2023 08:34:52 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <87sf8es0m0.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:h7UN1/e8a92z+oCuStbUP7QU2/fa9xAlGPDgCRxiBy8Eepl6h9DJrOlux4X2VXQL72DRg 91lmDhQRJx2d3G5skpglnID+SnSBsGM/3j+ayTCASDNYG6GVMOVc0dfowc1nYqO+VN0BU6LIopC4 MfAyC5+GXV41IK6aSGAJhKvU9Fxi1b7FE+YCByOcs1+VGJOVAnMAG7fqJkThOsXlEcnsyu+UjOFW w46fSLs+RrnjdNy4vJdG0VJhcTuKkc6G1zevapiOxfp7DEND2f/6N5VQBg4OR6pvEzIKB2RCKQNA Sc= UI-OutboundReport: notjunk:1;M01:P0:JGVUepG76Hg=;5CKnPCcYB2aFGIJiXkOgzrzuc0Z neC6l97vTkuFqYtHG1FRGsB6zSwwIJQ/cSRkYaX0n4FP5qzwQ7SLy6fz19e4glnjP9RypDcj7 xLGv2auD6CjOgP6Ls3fYT2dhNVOsFZn6LdUCBDgdlwvYLlx2acia/J5tAO1fO0odsGR95rK+F BFqWLGH/upt7pA12nGPj5mwlt93w5WiiX23EOvVbbkzlJedF9ZHQBld4wmYXHGOvRYbCxfQ2Y eefmioKxzA0hh7brhljJ58bMgM8Td6DLjMm4kJa0qbEhE4E/f8IjyKXt1fMuxGzkcM/8F9ZcV y6mw0ZHsZjazQKpxNg4Yn1pI41CI2xxBN9mzV2qzKF/0DXxiCAYx1aLfxL/FeuDNwxyem29CQ onNg+onIpXJOoF1xqleJdtI5Su1elk/zAM6FeckxFBhgcXXnEjIYL99is4aXN3eh8q9MDeBKh nTiU4EUTFBoiJtI70/67ZghVeKwT9H/Sn4Nb5ZkkiKgcYTHvhjqJxtj7Rit1sKJrzmhOEU0PS SoQTbHxkEqRljMoX2KHADp00uSTS5HSMKAFnHQH7FZuypRRF7wJc3C7vCTVnNDfczh01bMWCi uL+8IHtZkZYtXXPlKV/JNxMcWdjA8aB7U3Vfdz0rG0KR8I5tXo9neW2QIbLD9czO54Cg8DCA9 pEPJ06CU0rexxSzKTg+xc/linaJKfCRI3eGzioMOxxMWyhKO9YtVqNsY81dAt3jI+WJ2HxLMx PeHsATsQIYruhHhFr7+/RqIgn7G1hvELoqLqaah0uNjzQ5pJDhkdc8bo1XnuwH+a3Hf+BVpS 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:267953 Archived-At: > Sent: Sunday, August 20, 2023 at 6:12 PM > From: "Michael Heerdegen" > To: 65348@debbugs.gnu.org > Cc: eliz@gnu.org, heimeborgia@protonmail.com, drew.adams@oracle.com > Subject: bug#65348: INITIAL-INPUT in completing-read repeats same entry = twice consecutively > > Heime via "Bug reports for GNU Emacs, the Swiss army knife of text > editors" writes: > > > 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 ? > > 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 > > #+begin_src emacs-lisp > (minibuffer-with-setup-hook (lambda () (insert "BBB")) > (completing-read "Input: " (list "AAA" "BBB" "CCC"))) > #+end_src > > Michael. I suggest that the capability of prefilling the minibuffer be reintroduced for the new scheme as well. Because from what I see, the deprecated parts include a feature that will be automatically discarded under the new schem= e. >