From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#49931: 28.0.50; `choose-completion' submits incorrect string when minibuffer content changes after creation of the *Completions* buffer Date: Sun, 8 Aug 2021 09:02:31 +0200 (CEST) Message-ID: References: <83tuk0h610.fsf@gnu.org> Reply-To: Visuwesh 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="12446"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49931@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 08 09:03:15 2021 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 1mCcq2-00031i-MQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Aug 2021 09:03:14 +0200 Original-Received: from localhost ([::1]:34046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCcq0-0000tv-S9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Aug 2021 03:03:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCcpq-0000tT-Fe for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2021 03:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42031) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mCcpq-0007MB-9J for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2021 03:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mCcpq-0008MQ-6Q for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2021 03:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Aug 2021 07:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49931 X-GNU-PR-Package: emacs Original-Received: via spool by 49931-submit@debbugs.gnu.org id=B49931.162840616032093 (code B ref 49931); Sun, 08 Aug 2021 07:03:02 +0000 Original-Received: (at 49931) by debbugs.gnu.org; 8 Aug 2021 07:02:40 +0000 Original-Received: from localhost ([127.0.0.1]:53571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCcpU-0008LZ-87 for submit@debbugs.gnu.org; Sun, 08 Aug 2021 03:02:40 -0400 Original-Received: from w1.tutanota.de ([81.3.6.162]:55836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCcpR-0008LI-DU for 49931@debbugs.gnu.org; Sun, 08 Aug 2021 03:02:38 -0400 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 99119FBF4D5; Sun, 8 Aug 2021 07:02:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1628406151; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=D6j+kCkcOdbTkPFG92UC6Ofrma6JhrYlP0jkK5ilovs=; b=nH086KkFoGN5laPd+e5jzoN5iJG6uo87KBc5a9lmi87z12HiU+kCR52kVsB5bLTj Kp18kD0WQt/WuyungjDBBI5KnsJjszhWHUANKSMfuGiR0pY4OO5sQiL/Kj4iyud1nU7 ZPjKFDa88PM/P1W1IMuuAHJ1jz/faw0ZPy9I+BLuaai5b2SHM4+jFFRZwTaz7/3GLe9 DyyjsRXi27KfL+pAtOl4M9QDpW5gWszOUHtj5puVaqEvFojZMzCVYd1s6n0o2xS1WT4 O2IOqmXm3/9tsNJ+VfkkskUHB7hfiBVbDCJIu5bF/AZyVl0nyjDX1UlsgjJVdnnhHfP 71mMMDeLRw== In-Reply-To: <83tuk0h610.fsf@gnu.org> 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" Xref: news.gmane.io gmane.emacs.bugs:211399 Archived-At: 8=C2=A0 Aug 2021, 10:44 by eliz@gnu.org: >> Date: Sat, 7 Aug 2021 19:20:35 +0200 (CEST) >> From: Visuwesh via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> >> When one edits the minibuffer content after the creation of >> Completions* buffer, `choose-completion' incorrectly submits the wrong >> string to the command upon selecting a candidate.=C2=A0 To reproduce, >> >> >> 1. Start emacs -Q. >> 2. Type the following key sequence: C-h f emacs- TAB. >> 3. Type a. >> 4. Select `emacs-bzr-get-version' from the *Completions* buffer. >> 5. "user-error: Symbol=E2=80=99s function definition is void: >> emacs-bzr-get-versiona" is shown in the echo area. >> >> >> What I expected to happen: >> >> >> I expected `choose-completion' to submit "emacs-bzr-get-version" to >> describe-function, not "emacs-bzr-get-versiona". >> >> > You expected Emacs to ignore what you type? Yes, I expected Emacs to ignore 'a'. > Why? The name `choose-completion' leads one to think that the candidate will be chosen regardless of whatever is in the minibuffer but that is not the case.=C2=A0 I think the current behaviour is not intuitive. > What you type after TAB is used to narrow the list of candidates when > you type the next TAB, or continue typing after the first TAB > completed some of the name for you. This is the intended behavior. I do understand how the standard behaviour is supposed to be.=C2=A0 But I believe the current behaviour is unnatural.=C2=A0 When I am offered clickable text in a buffer which are advertised to complete the command when clicked, I expect that to happen.=C2=A0 In my case, the text visible in the *Completions* buffer did not have an extra 'a' but upon choosing, it did.=C2=A0 I think this is misleading.