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: Fri, 18 Aug 2023 00:35:09 +0000 Message-ID: <6lEyA2hwLwT0gnrhQsH91Us8wQDf0Cj8-hfYtge1iLDBFEsG5Hj_i80te8w4f52fgOS-g9Z908HRkYHlE05wBV9ccB5h1bFjV755l9nvYh0=@protonmail.com> References: <83edk26wwu.fsf@gnu.org> <837cpu6sp6.fsf@gnu.org> <83msyq54mw.fsf@gnu.org> 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="28786"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65348@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 18 02:36:24 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 1qWnTU-0007Gp-EL for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Aug 2023 02:36:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWnTB-0006TH-0L; Thu, 17 Aug 2023 20:36:05 -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 1qWnT8-0006Sk-Dl for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 20:36: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 1qWnT8-0005e8-5I for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 20:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWnT8-0004rF-73 for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 20:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Heime Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Aug 2023 00: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.169231892718631 (code B ref 65348); Fri, 18 Aug 2023 00:36:02 +0000 Original-Received: (at 65348) by debbugs.gnu.org; 18 Aug 2023 00:35:27 +0000 Original-Received: from localhost ([127.0.0.1]:45765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWnSZ-0004qQ-Fh for submit@debbugs.gnu.org; Thu, 17 Aug 2023 20:35:27 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]:53081) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWnSW-0004qD-72 for 65348@debbugs.gnu.org; Thu, 17 Aug 2023 20:35:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1692318918; x=1692578118; bh=JZ/GJY9dqQTsvxPiIaMjum+sri+jqcWrk8RQEa4VSrM=; 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=VC4TJIJzuw+6tQS/UVr+oM/SGtP6MVsqKMPU91moChHohxIkRdItOIID/i7nP5Gg9 TTmLTmWG8HTaXXDdevEIU+wbc3zDw4ua1sIpj4GWZkR+jAefeYNKBvM2SmrwoYwsFX J53o7v/RTZgAcz59f/TQtA+On0Jwxq1c5eD4nR2X97BfezIbFPqO/sipXVAxHv7Nvy MXXHPrknJbMuN0i2ufRxszoftNapKzIdwDOKJM/tqm8Pzk+u1biAk6wsndNErJCyO/ +B6WRNDYqBTPxRzYZPFyIPxkmEl2kA0xt2HnkO7N/ma4c/BBQ4/AghiQxr191W4ZYc DQ0Ec9RuRZFwg== In-Reply-To: <83msyq54mw.fsf@gnu.org> 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:267700 Archived-At: Sent with Proton Mail secure email. ------- Original Message ------- On Thursday, August 17th, 2023 at 10:45 PM, Eli Zaretskii wr= ote: > tags 65348 notabug > close 65348 > thanks >=20 > > Date: Thu, 17 Aug 2023 10:27:27 +0000 > > From: Heime heimeborgia@protonmail.com > > Cc: 65348@debbugs.gnu.org > >=20 > > The collection COLLECJ is this ordered sequence > >=20 > > "boxplus" "boxtimes" "Cap" "centerdot" "circledast" > >=20 > > with the call to COMPLETING-READ being > >=20 > > (completing-read "PROMPT: " collecj nil t "boxplus"))) > >=20 > > Where REQUIRE-MATCH is t > >=20 > > and INITIAL-INPUT is "boxplus" > >=20 > > Now, the user gets the prompt with "boxplus" displayed. > >=20 > > The user moves to the next completion candidate, which is also "boxplus= ", > > the entry at the beginning of COLLECTION. >=20 >=20 > Which is why the ELisp manual says: >=20 > The argument INITIAL is mostly deprecated; we recommend using a > non-=E2=80=98nil=E2=80=99 value only in conjunction with specifying a con= s cell for > HISTORY. *Note Initial Input::. For default input, use DEFAULT > instead. >=20 > In any case, the fact that you see "boxplus" as the first suggestion > of the "future history" is because you both added it to COLLECTION and > set INITIAL to it. So showing it as the first suggestion is exactly > what completing-read should do in this case. >=20 > This is not a bug, and so I'm closing it. So one is not supposed to have the value in COLLECTION if it has been speci= fied in INITIAL ? I find using INITIAL quite useful because the user sees something filled up= . What is one to do instead ? =20