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 15:40:22 -0300 Message-ID: References: <83bl2wa0fl.fsf@gnu.org> <838ry09xvi.fsf@gnu.org> <8335o89s48.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="32309"; 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 19:46:57 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 1mjnBw-0008Bx-NE for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Nov 2021 19:46:56 +0100 Original-Received: from [::1] (port=60834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjnBv-0006M2-9w for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Nov 2021 13:46:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjn6E-0002V4-RV for bug-gnu-emacs@gnu.org; Sun, 07 Nov 2021 13:41:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43166) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjn6E-0006Kx-Dd for bug-gnu-emacs@gnu.org; Sun, 07 Nov 2021 13:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mjn6E-00082O-73 for bug-gnu-emacs@gnu.org; Sun, 07 Nov 2021 13:41: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 18:41: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.163631044130861 (code B ref 51650); Sun, 07 Nov 2021 18:41:02 +0000 Original-Received: (at 51650) by debbugs.gnu.org; 7 Nov 2021 18:40:41 +0000 Original-Received: from localhost ([127.0.0.1]:54712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjn5t-00081f-8v for submit@debbugs.gnu.org; Sun, 07 Nov 2021 13:40:41 -0500 Original-Received: from mail-wm1-f45.google.com ([209.85.128.45]:44716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjn5r-00081S-JQ for 51650@debbugs.gnu.org; Sun, 07 Nov 2021 13:40:40 -0500 Original-Received: by mail-wm1-f45.google.com with SMTP id c71-20020a1c9a4a000000b0032cdcc8cbafso10154247wme.3 for <51650@debbugs.gnu.org>; Sun, 07 Nov 2021 10:40:39 -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=BiN2oICwMSMX1G9YYLHPXQRXtoPZkuAvDMImilLcP7Q=; b=mxQ2hU4wv2e4PwHYJAy5CIL1/y5DQvrkUaqFrn0Ry3qxVkO4hm0ImJjyPryJtfhxWY FVt/TCNXS/yPKlJDE05oybvuxDUyj/tLHfO8TBKY7O7TwHkuTyXUFKu2bMDnM7fjImnQ pLmMosj/vQByCX4aeeslOC3OVHbWDPTrtCmo5Imbvy2UV+M8zRxSEzHxcYNei0noqnOe D0Cj8P44b3hCrY3scNAyv5yD0ooXVdkEgkRl4vwwQBy3WOh+wIMA8KjytYmg9Nwu85q9 KPFA8fv1B3vSbeUobOq7gFb43WLE+W55mxup1Bcys36nxRefiVOt25rzmW2kLW/wi5xj r0zA== 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=BiN2oICwMSMX1G9YYLHPXQRXtoPZkuAvDMImilLcP7Q=; b=f2CfwCNrt/wKVq6jKIflFbRIWaLYXB5XLIj6pLPPpB03JgekryDakgUslsHH1ar0Gr TdhRr93B5XY2WgzhpE6A1BcqoMueSXg7X7gmBefL9KBoGCrE1nnhqjNzIEXV15+7XUU5 DkCONWj+XfOtN933V05VsNrmUAzpJOA4dSMQBzRIzFZ99r3p6Mk5pisOyKA0wF0ElKnf LoMbtlFjI1MzmbsHQQWIggH6gZ/nNbH+gjDlEDkb+1K34xklcJ9PaMA1yMmWofaQ4gBh eDEhCmuddJrNkRjMJYvWS8cyhcFBFevoSrW2hMIrzZov6SLk0QzCLi/15TmAicg7kl0I tIVg== X-Gm-Message-State: AOAM531NEFBl2vjtmvsWDeSRzTYr6lEIUee3gv2XzVNb3TMV4Fu9EA10 wFk5P16phBmF3H7r2VfxC5IP4H7oEN/TynaU0vRD7KO/DlU= X-Google-Smtp-Source: ABdhPJxRxJn36wZnMkAmV15uUrW79GRMUxoHHJhNlWJxsw5vmrg3SotHA1PVu3oD2ggomHByyhyhXtPIyAhQNsj7JdE= X-Received: by 2002:a05:600c:3b8f:: with SMTP id n15mr47760616wms.180.1636310433560; Sun, 07 Nov 2021 10:40:33 -0800 (PST) In-Reply-To: <8335o89s48.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:219281 Archived-At: Hi Eli, I remain unconvinced. I'll restate the above in a slightly more precise manner, but other than that I have nothing to add and if this is getting tiresome by all means feel free to close it. > > Suppose I now abort the process and do `M-x cd ~/Desktop` and then > > enter the find-file completion again, I'm in the same situation, yet I > > press Tab and I get "not unique" and I have to press Tab again in > > order to get the list of candidates. Why should the behavior differ? > > Because you haven't typed anything yet, so Emacs doesn't know what you > have in mind. In the other case, it has some hint. For me the relevant state includes: - I'm in the ~/Desktop directory. - I've not yet received any information about ~/Desktop being unique or not. By adding one of: - I've reached ~/Desktop from ~/Desk by pressing Tab. - I've reached ~/Desktop by launching Emacs from ~/Desktop. - I've reached ~/Desktop by changing the working directory. etc. ... or, more succinctly: - I've reached ~/Desktop by (immediately before) pressing Tab during the same "completing session". - I've reached ~/Desktop by other means. ... I can make the relevant state different, but I cannot grasp how the added information is relevant. You say in the first case I have typed something, namely Tab, but that was in a different context (~/Desk) and I don't find it more relevant than the fact that I have typed "M-x cd ~/Desktop" in the second example. What's that thing that the user has in mind? If the "not unique" message were shown at the end of step 4 instead, that would make an arguably relevant difference. In this variant, the first Tab (both in 2 and in 4) is always the one conveying the "not unique" hint, in 2 it's required only for this. Now in step 5 the information set includes: "I know that ~/Desktop is not unique", while this information is missing from the scenario in which I reached ~/Desktop by, say, launching emacs from that directory. I still find this inconvenient but it's a way of resolving what I see as inconsistent. Another way is to make the behavior in 2 as the one in 5, that is to require one Tab in 2 and show "not unique" and completions at the same moment, it is the variant I prefer. A third, uber annoying way, is to make the behavior in 5 as the one in 2, that is to require two Tabs in 5, so going from ~/Desk to the completion menu for ~/Desktop would require three Tabs. Best regards, Carlos