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 17:27:58 -0300 Message-ID: References: <83bl2wa0fl.fsf@gnu.org> <838ry09xvi.fsf@gnu.org> <8335o89s48.fsf@gnu.org> <83zgqf7pvm.fsf@gnu.org> <83v9137nbx.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="31985"; 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 21:29:09 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 1mjomr-00088A-KK for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Nov 2021 21:29:09 +0100 Original-Received: from [::1] (port=59898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjomq-0006Sb-9T for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Nov 2021 15:29:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjomk-0006Ps-23 for bug-gnu-emacs@gnu.org; Sun, 07 Nov 2021 15:29:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjomj-0002Vs-Pa for bug-gnu-emacs@gnu.org; Sun, 07 Nov 2021 15:29:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mjomj-0002Qt-Mf for bug-gnu-emacs@gnu.org; Sun, 07 Nov 2021 15:29:01 -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 20:29: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.16363169009302 (code B ref 51650); Sun, 07 Nov 2021 20:29:01 +0000 Original-Received: (at 51650) by debbugs.gnu.org; 7 Nov 2021 20:28:20 +0000 Original-Received: from localhost ([127.0.0.1]:54947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjom3-0002Py-Vz for submit@debbugs.gnu.org; Sun, 07 Nov 2021 15:28:20 -0500 Original-Received: from mail-wr1-f42.google.com ([209.85.221.42]:40839) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjom2-0002Pk-6N for 51650@debbugs.gnu.org; Sun, 07 Nov 2021 15:28:18 -0500 Original-Received: by mail-wr1-f42.google.com with SMTP id r8so23253132wra.7 for <51650@debbugs.gnu.org>; Sun, 07 Nov 2021 12:28:18 -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=4U5ukf3dUnr3LxIprytPjALMSOxrAQT+2GfJsaCbjoA=; b=Bk/52gDXdhD8Vkha4kHKSyEwUuGtUuRYOgEMu07kP+BF+R/Qpb/sUvYj+gL0/0KCCm 1/+kfnc020QOBOpyrvcrYeHLKzQ0YTtl/qSPpCwsXIJxVyBun7FQspOxlFzdaoX+1ojr /6oDZwj+DxdAlQeXOKZ9C9KGxKvVp5W+8mP0tY1A6YwJYhM39Sj8G/lj64iXDIY48od/ E/R3d8nVW0NN346Wxc7B8EAiwaUuzVsLsm3I31uoR3UiRj35SG8sFX9p/0rJXu2fuoN/ SS/hfq1uyrwZRyB+0CpDWHIgK3ifU8fOpAlDOfi7MRmUz+8X1SrZI9qQCOxomZT7yikT 8VKw== 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=4U5ukf3dUnr3LxIprytPjALMSOxrAQT+2GfJsaCbjoA=; b=fi7xDptWu/E8iT5p+mkT6hbiL5rl4Wf8QhYjmYWsq0LIEneLxzBnvCrzYSfA1VxxkB E/2lPZxLxc3T71ZgejkcIa3b5wGNyvjZ3w98WPPmzFJhzXRAQhl+pHcqfeFKgnrCl3GC RO4GPMEa2NMl4exFWoK8FaOnHwBPvoRDSv+4/pQgc1TpYKp+EBlPWl1WOwcH0lRju1kW E8P56L0DzhMEivyXAl7jyhtWvbl/PjtLdakTp1RW3Ceii8SgWoNPsoDixImogc1Jwf48 XtDV5G5Y8rIdl3UCMLPxV/vxgRGmc/G33ZCDcbKr+GCBKf+nGwtnq5kXVjgpXhUoXlzl tXVA== X-Gm-Message-State: AOAM533c+c01zJ/STbbVSVoxCiZ918TqvQEscgz3V1saVFD5twUW/O3b i4P9j/SjcMEjjoUD5pwuECPI8h1AVyt52YjYz+E= X-Google-Smtp-Source: ABdhPJwfc5JlgiAPJJFVTdEqfrZmRPKv8WIC4zdX6X6s7VoDSGaybvZuR6b3jN56clYmT272S3/ctxKYQ2dad/215mc= X-Received: by 2002:a5d:6381:: with SMTP id p1mr93701018wru.362.1636316892299; Sun, 07 Nov 2021 12:28:12 -0800 (PST) In-Reply-To: <83v9137nbx.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:219290 Archived-At: > But the difference is that until the first TAB the user cannot know > whether there is any completion. Only after Emacs doesn't complete is > that fact known. First of all, I'm assuming: - The initial value is taken from the current working directory so it's always a valid completion. - TAB never completes across the directory boundary. Let's consider: - TAB on ~/ (i.e. first TAB in #1) - TAB on ~/Desktop/ after TAB-completing from ~/Desk (i.e. second TAB in #2) - TAB on ~/Desktop/ with cwd = ~/Desktop/ (i.e. first TAB in #3). AFAICS these statements are true at the beginning (before pressing TAB) of all cases: - The user knows the current completion is valid. - The user cannot know whether there is any other completion with the same prefix. You seem to be saying that the TAB that produced ~/Desktop/ from ~/Desk is adding some worthy information about the contents of ~/Desktop, and therefore about possible completions, that wouldn't be there if the user, say, launched emacs from ~/Desktop as in #3. But, for the life of me, I cannot see it :(