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#49931: 28.0.50; `choose-completion' submits incorrect string when minibuffer content changes after creation of the *Completions* buffer Date: Sun, 08 Aug 2021 10:14:22 +0300 Message-ID: <83o8a8h0hd.fsf@gnu.org> References: <83tuk0h610.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23908"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49931@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 08 09:15:11 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 1mCd1b-00063u-3h for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Aug 2021 09:15:11 +0200 Original-Received: from localhost ([::1]:37558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCd1Z-0003gn-Vw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Aug 2021 03:15:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCd1S-0003gb-Fi for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2021 03:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42040) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mCd1S-0000X2-8q for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2021 03:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mCd1R-0000CZ-V3 for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2021 03:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Aug 2021 07:15:01 +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.1628406866721 (code B ref 49931); Sun, 08 Aug 2021 07:15:01 +0000 Original-Received: (at 49931) by debbugs.gnu.org; 8 Aug 2021 07:14:26 +0000 Original-Received: from localhost ([127.0.0.1]:53586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCd0s-0000BZ-Ar for submit@debbugs.gnu.org; Sun, 08 Aug 2021 03:14:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCd0p-0000BK-Tg for 49931@debbugs.gnu.org; Sun, 08 Aug 2021 03:14:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55454) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCd0k-0008Mj-HN; Sun, 08 Aug 2021 03:14:18 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2735 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCd0k-0004LW-4f; Sun, 08 Aug 2021 03:14:18 -0400 In-Reply-To: (message from Visuwesh on Sun, 8 Aug 2021 09:02:31 +0200 (CEST)) 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:211400 Archived-At: > Date: Sun, 8 Aug 2021 09:02:31 +0200 (CEST) > From: Visuwesh > Cc: 49931@debbugs.gnu.org > > 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.  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.  But I > believe the current behaviour is unnatural.  When I am offered > clickable text in a buffer which are advertised to complete the > command when clicked, I expect that to happen.  In my case, the text > visible in the *Completions* buffer did not have an extra 'a' but upon > choosing, it did.  I think this is misleading. I think your expectations are incorrect, because they are based on assumptions that are generally false in Emacs. In particular, depending on the context of the completion, typing more stuff after selecting a candidate is what is actually needed, so ignoring that would break valid use cases. Therefore I think we will have to agree to disagree on this one. I see no bug in the behavior you described. If it looks misleading to you, you will have to get used to it.