GNU bug report logs - #34622
Find file prompt should indicate sole completion by appending a blank

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Fri, 22 Feb 2019 21:41:02 UTC

Severity: wishlist

Tags: notabug

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 34622 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 34622 <at> debbugs.gnu.org
Subject: Re: bug#34622: Find file prompt should indicate sole completion by
 appending a blank
Date: Sat, 23 Feb 2019 09:36:16 +0200
tags 34622 notabug
thanks

> From: 積丹尼 Dan Jacobson
> 	<jidanni <at> jidanni.org>
> 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.




This bug report was last modified 5 years and 332 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.