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: Thu, 17 Aug 2023 10:27:27 +0000 Message-ID: References: <83edk26wwu.fsf@gnu.org> <837cpu6sp6.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="22886"; 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 Thu Aug 17 12:28:25 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 1qWaEr-0005it-FD for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Aug 2023 12:28:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWaEW-0001Ys-9i; Thu, 17 Aug 2023 06:28:04 -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 1qWaEV-0001Ub-7s for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 06:28: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 1qWaEU-0007U7-Uw for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 06:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWaEU-0001aJ-Bj for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 06:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Heime Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Aug 2023 10:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65348 X-GNU-PR-Package: emacs Original-Received: via spool by 65348-submit@debbugs.gnu.org id=B65348.16922680626064 (code B ref 65348); Thu, 17 Aug 2023 10:28:02 +0000 Original-Received: (at 65348) by debbugs.gnu.org; 17 Aug 2023 10:27:42 +0000 Original-Received: from localhost ([127.0.0.1]:42831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWaE9-0001Zj-LL for submit@debbugs.gnu.org; Thu, 17 Aug 2023 06:27:41 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]:22063) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWaE7-0001ZW-72 for 65348@debbugs.gnu.org; Thu, 17 Aug 2023 06:27:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1692268053; x=1692527253; bh=bY0z2S4JIQ9N+gl+6fV6Z8EaAmU5GPDNLyze0bXwPA4=; 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=RHAt05bVDr4RV3QfUn7k6COG+upPwIgAx80iurM7eFC/7IoeikBqx7XjlcI3vof3o Pm3eBZJSNcKkThd3V+r6DqyM0qTEsBQ70wp3c6X6Lxp10JVGopenMP6xHf4YNeFYdq ++lBGTDODZQiKKD7ILj8nyt7wrOkIAr5H5VxaDJrLhZ1iZ4GaSUQMnE8tFYCboYeFZ bIbtDmvPRMnuAJW6EykjKcH2VYdyElgqamQsKtWEvMT/OQQrwasfeejhmYLqeP5ZRw 6x/NADbGBWJ2dbzXZnK4N0Yu5npylYgs+32e+2Pp3dFHeOufwiQtkqko2lnfAbsNst DOsf+Za5ej/SQ== In-Reply-To: <837cpu6sp6.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:267652 Archived-At: Sent with Proton Mail secure email. ------- Original Message ------- On Thursday, August 17th, 2023 at 7:20 PM, Eli Zaretskii wro= te: > > Date: Thu, 17 Aug 2023 06:05:06 +0000 > > From: Heime heimeborgia@protonmail.com > > Cc: 65348@debbugs.gnu.org > >=20 > > > Sorry, I don't understand what you are saying. What do you mean by > > > "is displayed twice consecutively"? I guess some details are missing > > > from your report to make it complete and self-explanatory? > >=20 > > Consider the function defined by > >=20 > > (defun bigops (grafm seltr) > > (interactive > > (let ( (collecj '("boxplus" "boxtimes" "Cap" "centerdot" "circledast"))= ) > > (completing-read "Grapheme: " collecj nil t "boxplus"))) > >=20 > > The user would see "boxplus", then the following element shows "boxplus= " > > consecutively again. Could you consider the capability that when one us= es > > REQUIRE-MATCH, the function finds the entry for INITIAL-INPUT so that t= he > > next thing that gets shown after that starts from the one following the > > match in COLLECTION. Otherwise, one is forced to put the INITIAL-INPUT > > entry at the end of COLLECTION. >=20 >=20 > Sorry, I still don't understand: what are "the following element" and > "the next thing that gets shown"? Shown how? What causes them to be > shown? The collection COLLECJ is this ordered sequence=20 "boxplus" "boxtimes" "Cap" "centerdot" "circledast" with the call to COMPLETING-READ being (completing-read "PROMPT: " collecj nil t "boxplus"))) Where REQUIRE-MATCH is t and INITIAL-INPUT is "boxplus" Now, the user gets the prompt with "boxplus" displayed. The user moves to the next completion candidate, which is also "boxplus", the entry at the beginning of COLLECTION.