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 06:05:06 +0000 Message-ID: References: <83edk26wwu.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="10062"; 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 08:06:46 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 1qWW9e-0002Oa-9R for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Aug 2023 08:06:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWW9D-0000TD-Fa; Thu, 17 Aug 2023 02:06:19 -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 1qWW8x-0000Rv-0d for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 02:06:05 -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 1qWW8w-0003bs-OY for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 02:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWW8w-0003Fn-Im for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 02:06: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 06:06: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.169225232312448 (code B ref 65348); Thu, 17 Aug 2023 06:06:02 +0000 Original-Received: (at 65348) by debbugs.gnu.org; 17 Aug 2023 06:05:23 +0000 Original-Received: from localhost ([127.0.0.1]:42648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWW8J-0003Ed-Dl for submit@debbugs.gnu.org; Thu, 17 Aug 2023 02:05:23 -0400 Original-Received: from mail-40141.protonmail.ch ([185.70.40.141]:49763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWW8H-0003E9-VZ for 65348@debbugs.gnu.org; Thu, 17 Aug 2023 02:05:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1692252315; x=1692511515; bh=f8gghmZkr7hJGeu/U1HNIFKtvw9F328F0D9v0m9+6Pc=; 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=lWgsOXybGxnxV0YrGwIvfb+TTMVnrzk50z7pSOjhX/4jK32zuTtWt+SWrepfT0snf XxL3pDAleYWPW4zx2snS3q17MKD3ubzKmDx2WmN9+1prk3vYjxCRXjW30YXT2o/vco tz6Iz76N8fRkRUSTDf5skGLRjHFgg50jbn/EjpVOqOJ528c0DrSX1/i4wgnvQT0PPc VwATEOuqbeLpBUvMEeiCyH1RtTBc4u8t4QtgA7zwlRF/Y3lCJumRjyi7oS6Y/FjfnB cj8KPCcxQ2zDG+Elll14LxA1cXCVeXp14gz6tIakug7pADVhZ7qcEWt33fX+awQ/ew MvuVDMw1qXVBA== In-Reply-To: <83edk26wwu.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:267635 Archived-At: Sent with Proton Mail secure email. ------- Original Message ------- On Thursday, August 17th, 2023 at 5:49 PM, Eli Zaretskii wro= te: > > Date: Thu, 17 Aug 2023 00:47:28 +0000 > > From: Heime via "Bug reports for GNU Emacs, > > the Swiss army knife of text editors" bug-gnu-emacs@gnu.org > >=20 > > Have seen that when I include INITIAL-INPUT that happens to be the firs= t entry > > in the collection COLLECJ, the entry "barwedge" is displayed twice cons= ecutively. > >=20 > > But such situation does not happen when selecting a different entry fro= m collection. > >=20 > > (let ( (collecj '("barwedge" "boxdot" "boxminus" "boxplus" > > "boxtimes" "Cap" "centerdot" "circledast" > >=20 > > (completing-read "Grapheme: " collecj nil t "barwedge") >=20 >=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? Consider the function defined by (defun bigops (grafm seltr) (interactive (let ( (collecj '("boxplus" "boxtimes" "Cap" "centerdot" "circledast"))= ) (completing-read "Grapheme: " collecj nil t "boxplus"))) The user would see "boxplus", then the following element shows "boxplus" consecutively again. Could you consider the capability that when one uses REQUIRE-MATCH, the function finds the entry for INITIAL-INPUT so that the= =20 next thing that gets shown after that starts from the one following the=20 match in COLLECTION. Otherwise, one is forced to put the INITIAL-INPUT entry at the end of COLLECTION.