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#51650: Autocomplete: first Tab should show *Completions* buffer Date: Sun, 07 Nov 2021 10:24:33 +0200 Message-ID: <838ry09xvi.fsf@gnu.org> References: <83bl2wa0fl.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7998"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51650@debbugs.gnu.org To: Carlos Pita Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 07 09:25: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 1mjdUF-0001rr-A3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Nov 2021 09:25:11 +0100 Original-Received: from localhost ([::1]:47752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjdUD-0004Xr-W9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Nov 2021 03:25:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjdU6-0004Xj-D4 for bug-gnu-emacs@gnu.org; Sun, 07 Nov 2021 03:25:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40169) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjdU6-0007t8-3n for bug-gnu-emacs@gnu.org; Sun, 07 Nov 2021 03:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mjdU5-000819-SA for bug-gnu-emacs@gnu.org; Sun, 07 Nov 2021 03:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Nov 2021 08:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51650 X-GNU-PR-Package: emacs Original-Received: via spool by 51650-submit@debbugs.gnu.org id=B51650.163627349930807 (code B ref 51650); Sun, 07 Nov 2021 08:25:01 +0000 Original-Received: (at 51650) by debbugs.gnu.org; 7 Nov 2021 08:24:59 +0000 Original-Received: from localhost ([127.0.0.1]:51715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjdU0-00080m-Ac for submit@debbugs.gnu.org; Sun, 07 Nov 2021 03:24:59 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjdTy-00080Z-2e for 51650@debbugs.gnu.org; Sun, 07 Nov 2021 03:24:54 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39054) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjdTs-0007qo-Rh; Sun, 07 Nov 2021 03:24:48 -0500 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=/Y+w0FQ8K0U/Nrb/poOtvbvMuSVx+BjyBKaGHRcDWlA=; b=kZGs+Pj2NvLD Rb8qWWzLzn1x+GuoAlAakPR4sDrI32M8iGo1vokbHzoAnV44ngsPZZJq9YNYPiC9/DFvXXIDx23cx kMYT0JGuo3i4V/hHz7PzRUx4U57KwvlZ64IxgcVpcIU78j23NS55pCRjd/jpfKKTPxhF8MitjhVLb oYU42NN2j8BhFIazhRvxdk9jfX+/kUmpZlwzc4AhXn1kBOiNMksmxOH11GIrEmO80yMYBEzaWXaAn Y7/6czD4ldd2AFAgMR26a9yvzkc+pjERT0rRwpqPNgze2AoMN1rwpTAjTS6RSGmFW6NIzYTPPCHx2 8MrH4Uu8JBXhNSW6C9NRLw==; Original-Received: from [87.69.77.57] (port=1216 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 1mjdTs-0005aM-7r; Sun, 07 Nov 2021 03:24:48 -0500 In-Reply-To: (message from Carlos Pita on Sun, 7 Nov 2021 05:16:50 -0300) 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:219216 Archived-At: > From: Carlos Pita > Date: Sun, 7 Nov 2021 05:16:50 -0300 > Cc: 51650@debbugs.gnu.org > > I can understand why things work the way they do by looking at the > implementation. But I can't put it into simple meaningful reasons. The > manual says that when Tab is unable to complete it displays a list of > possible completions, yet in step 2 this is not true. That's because TAB _is_ able to complete, but only partially. And with file names, it can well be that the partial match is what you want. > The implementation checks that the last command and the current > command are the same before showing that list of completions, so it > surely won't happen in step 2 since it's the first and only Tab in > the sequence. In order to explain this, one seems forced to say that > _at least_ two Tabs in a row have to be pressed to show the > *Completions* buffer: one won't do it, exactly two won't always do > it (both of them may complete something), so there must be a > sequence of at least two Tabs and the last one must be unable to > complete. The 2 TABs are necessary if the partial completion is not what you want. Emacs cannot know that, only you, the user, can.