From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#46368: Completion vs. "*" buffer names Date: Wed, 10 Feb 2021 08:31:54 +0800 Message-ID: <87wnvgg3ut.5.fsf@jidanni.org> References: <87y2fz253f.5.fsf@jidanni.org> <7e12c1c3c1ff7dc27105@heytings.org> <87y2fx2py9.5.fsf@jidanni.org> <8ed9b43502b64b17d7bc@heytings.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11398"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46368@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 10 01:34:17 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 1l9dSS-0002ql-MU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Feb 2021 01:34:17 +0100 Original-Received: from localhost ([::1]:55990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9dSR-0008Ti-My for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 19:34:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9dRG-0007k7-Ht for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 19:33:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43572) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9dRG-0001Yw-Ah for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 19:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l9dRG-0001rg-8F for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 19:33:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87y2fz253f.5.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Feb 2021 00:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46368 X-GNU-PR-Package: emacs Original-Received: via spool by 46368-submit@debbugs.gnu.org id=B46368.16129171257080 (code B ref 46368); Wed, 10 Feb 2021 00:33:02 +0000 Original-Received: (at 46368) by debbugs.gnu.org; 10 Feb 2021 00:32:05 +0000 Original-Received: from localhost ([127.0.0.1]:55107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9dQL-0001q8-5h for submit@debbugs.gnu.org; Tue, 09 Feb 2021 19:32:05 -0500 Original-Received: from crocodile.elm.relay.mailchannels.net ([23.83.212.45]:14287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9dQI-0001pZ-8Z for 46368@debbugs.gnu.org; Tue, 09 Feb 2021 19:32:03 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B9DAA641E5A; Wed, 10 Feb 2021 00:32:00 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a23.g.dreamhost.com (100-96-16-7.trex.outbound.svc.cluster.local [100.96.16.7]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 3FC3F641CF9; Wed, 10 Feb 2021 00:32:00 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a23.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.16.7 (trex/6.0.2); Wed, 10 Feb 2021 00:32:00 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Befitting-Thread: 06740ccc20c96e6d_1612917120607_2497602994 X-MC-Loop-Signature: 1612917120607:2904773041 X-MC-Ingress-Time: 1612917120607 Original-Received: from pdx1-sub0-mail-a23.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a23.g.dreamhost.com (Postfix) with ESMTP id 067E380416; Tue, 9 Feb 2021 16:32:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=6n5df9e3MBj6FpuLx0kYhQ/n5Ws=; b=MGEwx7u/LJ7av CjceuSYKpChgCr4SOn3QlrHXA5vo7WI2/Z3CDwSztCRcRfNg/0MQsZfvK65YXCcE rRiULaQ7b4za+g35RIxiQvxk9pvnPpUwWGg4v/IhLW11bJvut1ht4mXogqwSiStt uueRrMsKwF4L42A9k7VfTrSoC4cokw= Original-Received: from jidanni.org (220-140-14-29.dynamic-ip.hinet.net [220.140.14.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a23.g.dreamhost.com (Postfix) with ESMTPSA id 58445862BC; Tue, 9 Feb 2021 16:31:58 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a23 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:199746 Archived-At: The problem is emacs prompts with A when it should prompt with B: [A] Switch to buffer (default *scratch*): scratch* [B] Switch to buffer (default *scratch*): *scratch* There is no basis for emacs to produce A. The line is not too long so need to be truncated at the front. The asterisk at the front is not more boring than the asterisk at the end. Emacs simply makes a mistake, dropping the asterisk at the front. If it kept the asterisk on the front, matching would work properly. Your tests are biased, in that you are still executing from one of the buffers involved. My tests move to a third neutral buffer. $ emacs -Q --eval '(progn(clone-buffer)(switch-to-buffer "x"))' Then typs C-x b ;; switch-to-buffer s ;; self-insert-command c ;; self-insert-command ;; minibuffer-complete ;; minibuffer-complete C-h l ;; view-lossage And, even if matching, say, still works super duper, etc. By forgetting the asterisk at front, emacs looks like it forgot something. >>>>> "GH" == Gregory Heytings writes: GH> Thank you. Here's a shorter recipe: GH> emacs -Q GH> M-x clone-buffer GH> C-x b RET GH> C-x b s TAB GH> At that point it is possible to select "*scratch*<2>" by typing < TAB, GH> but it is not possible to select "*scratch*". With GH> C-x b *s TAB GH> there is no problem however, there is no problem, so I'm not sure it's GH> a bug.