From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34622: Find file prompt should indicate sole completion by appending a blank Date: Sat, 23 Feb 2019 09:36:16 +0200 Message-ID: <83bm33q7m7.fsf@gnu.org> References: <87k1hrijt4.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=shift_jis Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="45679"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34622@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 23 08:37:14 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxRs1-000Bmy-DJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Feb 2019 08:37:13 +0100 Original-Received: from localhost ([127.0.0.1]:33948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxRs0-0002TT-AB for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Feb 2019 02:37:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxRrt-0002T5-Gy for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2019 02:37:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxRrr-0001u4-Hn for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2019 02:37:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35226) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gxRrp-0001so-Vt for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2019 02:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gxRrp-0007FN-Li for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2019 02:37: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: Sat, 23 Feb 2019 07:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34622 X-GNU-PR-Package: emacs Original-Received: via spool by 34622-submit@debbugs.gnu.org id=B34622.155090738427805 (code B ref 34622); Sat, 23 Feb 2019 07:37:01 +0000 Original-Received: (at 34622) by debbugs.gnu.org; 23 Feb 2019 07:36:24 +0000 Original-Received: from localhost ([127.0.0.1]:48770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxRrE-0007EK-0M for submit@debbugs.gnu.org; Sat, 23 Feb 2019 02:36:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxRrC-0007E3-Ap; Sat, 23 Feb 2019 02:36:22 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxRr3-0000VM-6Q; Sat, 23 Feb 2019 02:36:13 -0500 Original-Received: from [176.228.60.248] (port=2411 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gxRr2-0007dU-QV; Sat, 23 Feb 2019 02:36:13 -0500 In-reply-to: <87k1hrijt4.fsf@jidanni.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:155667 Archived-At: tags 34622 notabug thanks > From: ϒO 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.