From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#51650: Autocomplete: first Tab should show *Completions* buffer Date: Sun, 7 Nov 2021 16:34:29 -0300 Message-ID: References: <83bl2wa0fl.fsf@gnu.org> <838ry09xvi.fsf@gnu.org> <8335o89s48.fsf@gnu.org> <83zgqf7pvm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23226"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51650@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 07 20:36:08 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 1mjnxY-0005rC-DT for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Nov 2021 20:36:08 +0100 Original-Received: from [::1] (port=49924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjnxX-0003dh-Bj for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Nov 2021 14:36:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjnwU-0002ua-I3 for bug-gnu-emacs@gnu.org; Sun, 07 Nov 2021 14:35:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43291) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjnwU-0006TR-9b for bug-gnu-emacs@gnu.org; Sun, 07 Nov 2021 14:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mjnwU-00012D-7P for bug-gnu-emacs@gnu.org; Sun, 07 Nov 2021 14:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Nov 2021 19:35:02 +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.16363136913956 (code B ref 51650); Sun, 07 Nov 2021 19:35:02 +0000 Original-Received: (at 51650) by debbugs.gnu.org; 7 Nov 2021 19:34:51 +0000 Original-Received: from localhost ([127.0.0.1]:54836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjnwI-00011k-TJ for submit@debbugs.gnu.org; Sun, 07 Nov 2021 14:34:51 -0500 Original-Received: from mail-wr1-f47.google.com ([209.85.221.47]:37727) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjnwH-00011Y-LC for 51650@debbugs.gnu.org; Sun, 07 Nov 2021 14:34:50 -0500 Original-Received: by mail-wr1-f47.google.com with SMTP id b12so23165333wrh.4 for <51650@debbugs.gnu.org>; Sun, 07 Nov 2021 11:34:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Dcdub2yxdlJ6E1jbH9qcttvPeX4Lhir7nx65TUpQgTI=; b=eYk67GIIIWQTYmgPnajXqmOx8svidqvJMtgXPMqg5bdBQ0DuDbiYxJw0MTfImyPk+e gYvZPVWfeIsNns0LNdamHvgsll6uzugfC+nVkew9HHbNOzYUpMs97a+m0idghHYwljsv wPxlPEgMhOeFAaB4Po7o5a37vD/iyjnLo66pfJR4dbkWPRgN5zx4nNivuDAkoK0DgH8b urUB2kID1oHrcqgqrHEp3fXhnupW1lAUzZdQBihSlg4lgb9pghwn6deqMF1/aHT6WReU XcNVSNB6JCKFRAFQ7HClv6yEddsaTXAMRK1QiLcBMrNcJViz8wUt7NYyTaW69kxm/lBS vwoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Dcdub2yxdlJ6E1jbH9qcttvPeX4Lhir7nx65TUpQgTI=; b=tdhdeUoCOhc3vgvloBer7jWPoFIrvdQbwp0dHB+SKj5X661I5IAUGTGhkZtUo9aeaY 3TrEYARjM+RS6Vpc937IjOXI/5YNaO6gHS6wNc+V4B8lng/upotCrxFYiswtSfI71sex X/jwQCuiOx/VAM7PzL09TaMvwAVJas7AHls8X2Blba29uSY8vFpwICNGUxNZFVOkA7cl yc7pdws8aIJ8z4jUbFmMjfWJ8OPO+hY3nKmOXuEqgSbQJ3la8xzR7gA+e3howeB1oGTX WS7K8ZSlM1lbLu8Eo1tApeLCVVx/cQ5qfm6vlJosKg/cB1K7MJMgZ53mhMVOA8mzAttL /3Fw== X-Gm-Message-State: AOAM533Ef+zrQjqIbdaSpdY6ukCZNz+yLkBU3OxSfuSKhVPvZxFqF2g3 hpFtDSFgna179bLsbMRfJNnFVCUXMY9Pq7r+ghcdbhZcrU8= X-Google-Smtp-Source: ABdhPJwUpTBwrYYPg+zkp2/7PchH5odSUqOTejkb+yF5ubSfom4qOdgrLV+uUlWTcW6YxZb4qH0oMSGcQOVY58Q1TMw= X-Received: by 2002:adf:df0c:: with SMTP id y12mr52612193wrl.168.1636313683373; Sun, 07 Nov 2021 11:34:43 -0800 (PST) In-Reply-To: <83zgqf7pvm.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:219284 Archived-At: > We are mis-communicating. Let's start from the beginning. > > Scenario #1: > > . User presses C-x C-f TAB > . Emacs says [Complete but not unique] > . User presses TAB once more > . Emacs pops up *Completions* and still says [Complete but not unique] > > Scenario #2: > > . User presses C-x C-f Desk TAB > . Emacs completes to ~/Desktop/ > . User presses TAB once more > . Emacs pops up *Completions* and says [Complete but not unique] > > The difference after the first TAB is because in Scenario #1 there's > nothing to complete, and what's in the minibuffer is already a valid > response to the prompt: it specifies an existing file/directory. > Whereas in Scenario #2 Emacs _can_ complete, and what the user typed > is not an existing file. So far so good, but I'm comparing the second Tab in scenario #2 to the first Tab in scenario #1 because they are both in states characterized by: a. a valid response b. a non-unique completion c. no information yet communicated to the user about b Of course one is in ~/ while the other is in ~/Desktop/, so to make my point clearer I've construed the alternative scenario: Scenario #3: . User types M-x cd RET ~/Desktop RET (or launches emacs from ~/Desktop) . User presses C-x C-f TAB . Emacs says [Complete but not unique] . User presses TAB once more . Emacs pops up *Completions* and still says [Complete but not unique] The way the user reached ~/Desktop in scenarios #2 and #3 is irrelevant to me, the fact that s/he has typed Tab before or not is not adding anything to the fact that the ongoing completion is now ~/Desktop/ and the user still doesn't know whether it's unique or not. That's why I cannot make sense of the difference in behavior.