From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#34622: Find file prompt should indicate sole completion by appending a blank Date: Mon, 16 Sep 2019 05:13:43 +0200 Message-ID: References: <87k1hrijt4.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="176646"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34622-done@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 16 05:15:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i9hTt-000jsT-7r for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Sep 2019 05:15:13 +0200 Original-Received: from localhost ([::1]:58690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9hTr-0002Mi-Uk for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Sep 2019 23:15:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55768) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9hTj-0002Li-Et for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2019 23:15:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i9hTi-0002sd-FX for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2019 23:15:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40171) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i9hTi-0002sX-Cq for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2019 23:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i9hTi-00077m-6q for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2019 23:15:02 -0400 In-Reply-To: <87k1hrijt4.fsf@jidanni.org> Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Sep 2019 03:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 34622 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Mail-Followup-To: 34622@debbugs.gnu.org, stefan@marxist.se, jidanni@jidanni.org Original-Received: via spool by 34622-done@debbugs.gnu.org id=D34622.156860364227269 (code D ref 34622); Mon, 16 Sep 2019 03:15:01 +0000 Original-Received: (at 34622-done) by debbugs.gnu.org; 16 Sep 2019 03:14:02 +0000 Original-Received: from localhost ([127.0.0.1]:48990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9hSk-00075l-9V for submit@debbugs.gnu.org; Sun, 15 Sep 2019 23:14:02 -0400 Original-Received: from mail-pf1-f196.google.com ([209.85.210.196]:40722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9hSi-000753-IW for 34622-done@debbugs.gnu.org; Sun, 15 Sep 2019 23:14:01 -0400 Original-Received: by mail-pf1-f196.google.com with SMTP id x127so22033202pfb.7 for <34622-done@debbugs.gnu.org>; Sun, 15 Sep 2019 20:14:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc :content-transfer-encoding; bh=v2RjsyEc1cqsE9kO2foED0g6wg4bty1zHpZX8mgI6+E=; b=uGpTzyx2yfPN54oPI8ZBYuAbMKVb8DRJoIpbBhYAuA6s1w4cUnrOn/g+gfv+iXqqpa 6aVIApjaTtMQX3usmq5CdbqVJDXADAmWvM1o95Ye1PzQNuZT7mblgGypDAuDOMci4D/U lmqh5aB5B0YGF1jMiLYmgNL2JcywfTxfKDxOhmFGqisU4uZ/NOaVIg3jHaUyV9TycmDE UaLQWju91qtDQRPqkdfyZG3gUf7f6ulnWJ/84TYHm9tyvv87TQgFdn6lwb2y+ZzMoMNZ wJ70ZK9l6vp1z5FptGxSpkG/6SY8+9WDKZQDgQy6G7aK06c2+HmzUCfI7vI4QlADV7iK vKMg== X-Gm-Message-State: APjAAAVivph8g2g8qMzIrRzuzGF4m4f9qxoZGuVUPMUZN/Z3Xv72AJE7 bRko3Szfqnmho01xfHgCgNPRhno488wCg0XXhVE= X-Google-Smtp-Source: APXvYqxl/HAexwazCP0w261PwFFSWNiCc9ZXPmEjKu9HWQohUtTPkO9KZEf6huHKRAgYwIS9WR5h1WcPM4lWjXKoqYg= X-Received: by 2002:a17:90a:8d0c:: with SMTP id c12mr18406882pjo.119.1568603634733; Sun, 15 Sep 2019 20:13:54 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166536 Archived-At: Eli Zaretskii writes: > tags 34622 notabug > thanks > >> From: =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson >> >> Date: Sat, 23 Feb 2019 05:40:07 +0800 >> >> With emacs, one can never be sure if the expansion >> Find file or URL: ~/bin/wwzz >> is the sole completion or not, without needing a second TAB press to get >> "[Sole completion]" shown. > > Which command did that? "C-x C-f" shows just the directory, so > there's no question of completions with the initial prompt. The > situation you describe is thus not entirely clear. > > But in general, this default behavior is on purpose (there are add-on > packages which give you immediate feedback about candidates). > File-name completion is special, by design. > >> With bash, there is always a space added at end, >> "$ wc ~/bin/wwzz " >> so we know right away. > > Bash is not an editor, so the considerations are different. For > example, Bash doesn't need to consider the possibility that the user > would like to create a new file. > >> I propose that emacs do the same: >> "Find file or URL: ~/bin/wwzz " >> and if they really want to enter a file with a " " at the end, well they >> could use C-q (quoted-insert). > > Asking users to use C-q for whitespace embedded in a file name is a > non-starter. We did the opposite change several Emacs versions ago. Since this is notabug, I'm also closing it now. Best regards, Stefan Kangas