From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65348: INITIAL-INPUT in completing-read repeats same entry twice consecutively Date: Thu, 17 Aug 2023 10:20:21 +0300 Message-ID: <837cpu6sp6.fsf@gnu.org> References: <83edk26wwu.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16791"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65348@debbugs.gnu.org To: Heime Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 17 09:21:27 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 1qWXJv-0004BX-4y for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Aug 2023 09:21:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWXJm-0008Eb-Hi; Thu, 17 Aug 2023 03:21:18 -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 1qWXJX-0008E7-9Z for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 03:21: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 1qWXJX-0005lK-0V for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 03:21:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWXJW-00059m-JC for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 03:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Aug 2023 07:21: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.169225682219763 (code B ref 65348); Thu, 17 Aug 2023 07:21:02 +0000 Original-Received: (at 65348) by debbugs.gnu.org; 17 Aug 2023 07:20:22 +0000 Original-Received: from localhost ([127.0.0.1]:42683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWXIr-00058g-Rk for submit@debbugs.gnu.org; Thu, 17 Aug 2023 03:20:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWXIp-00058Q-Ry for 65348@debbugs.gnu.org; Thu, 17 Aug 2023 03:20:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWXIk-0005Ue-Ko; Thu, 17 Aug 2023 03:20:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=7RqtqBbBkr+SFhEpBBOsBRtsuAiufi4Mjk7QHctqhi4=; b=WyUVS9OKA+Q+ Lqp8cJdVafWv/GrGvBNMwQo23hSuR2ymuDVZ8ywe4WrKPmVFcOlyTqLzX2J8pWjN0/8GUgIKdvqr0 E+F2EylinPaLguU6c/Xhde2wSr6YR771fvqP9XHHbHDCLUbz9mnw3RoZ2sAdd2DngRNJv10KOmrOd 3hEHOagaFzzqM0nNccpQQ++NzIy/Vndnwfl4/Wakzm9amJXGrWSRAJgtDYlJEiSDlHhQ6mFMOXNqf caNZw+uNvsiKHvj3ezx30vK87t7VRdKzqYaIIP0xQSC/WQyC/qbnSle/qr2nPeKzXiXIf99wf0WEW H9X7KFKxheKRjag2mERFXQ==; In-Reply-To: (message from Heime on Thu, 17 Aug 2023 06:05:06 +0000) 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:267639 Archived-At: > Date: Thu, 17 Aug 2023 06:05:06 +0000 > From: Heime > Cc: 65348@debbugs.gnu.org > > > 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 > 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. 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?