GNU bug report logs -
#34622
Find file prompt should indicate sole completion by appending a blank
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34622 in the body.
You can then email your comments to 34622 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#34622
; Package
emacs
.
(Fri, 22 Feb 2019 21:41:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 22 Feb 2019 21:41:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
With bash, there is always a space added at end,
"$ wc ~/bin/wwzz "
so we know right away.
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).
See also https://www.gnu.org/software/emacs/manual/html_node/elisp/Minibuffer-Completion.html
but I am specifically talking about C-x C-f (find-file) and C-x d
(dired). Sorry we did discuss this before...
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#34622
; Package
emacs
.
(Sat, 23 Feb 2019 07:37:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 34622 <at> debbugs.gnu.org (full text, mbox):
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.
Added tag(s) notabug.
Request was from
Eli Zaretskii <eliz <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 23 Feb 2019 07:37:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#34622
; Package
emacs
.
(Sun, 24 Feb 2019 04:38:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 34622 <at> debbugs.gnu.org (full text, mbox):
>>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
EZ> Which command did that? "C-x C-f" shows just the directory, so
EZ> there's no question of completions with the initial prompt. The
EZ> situation you describe is thus not entirely clear.
$ touch /tmp/zzz #new plain file
C-x C-f /tmp/zzz
EZ> Asking users to use C-q for whitespace embedded in a file name is a
EZ> non-starter. We did the opposite change several Emacs versions ago.
I'm only talking about trailing whitespace...
In fact it could expand that too. OK never mind.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#34622
; Package
emacs
.
(Sun, 24 Feb 2019 16:06:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 34622 <at> debbugs.gnu.org (full text, mbox):
> From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> Cc: 34622 <at> debbugs.gnu.org
> Date: Sun, 24 Feb 2019 12:36:54 +0800
>
> >>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
> EZ> Which command did that? "C-x C-f" shows just the directory, so
> EZ> there's no question of completions with the initial prompt. The
> EZ> situation you describe is thus not entirely clear.
>
> $ touch /tmp/zzz #new plain file
> C-x C-f /tmp/zzz
But in this case, the first TAB already says "Sole completion", as you
wanted...
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#34622
; Package
emacs
.
(Wed, 27 Feb 2019 05:21:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 34622 <at> debbugs.gnu.org (full text, mbox):
EZ> Which command did that? "C-x C-f" shows just the directory, so
EZ> there's no question of completions with the initial prompt. The
EZ> situation you describe is thus not entirely clear.
>>
>> $ touch /tmp/zzz #new plain file
>> C-x C-f /tmp/zzz
EZ> But in this case, the first TAB already says "Sole completion", as you
EZ> wanted...
Nope: See, needed two tabs!:
C-x C-f [find-file]
/ [self-insert-command]
t [self-insert-command]
m [self-insert-command]
<tab> [minibuffer-complete]
z [self-insert-command]
z [self-insert-command]
<tab> [minibuffer-complete]
<tab> [minibuffer-complete]
C-h l [view-lossage]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#34622
; Package
emacs
.
(Wed, 27 Feb 2019 15:50:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 34622 <at> debbugs.gnu.org (full text, mbox):
> From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> Cc: 34622 <at> debbugs.gnu.org
> Date: Wed, 27 Feb 2019 13:20:30 +0800
>
> >> $ touch /tmp/zzz #new plain file
> >> C-x C-f /tmp/zzz
>
> EZ> But in this case, the first TAB already says "Sole completion", as you
> EZ> wanted...
>
> Nope: See, needed two tabs!:
>
> C-x C-f [find-file]
> / [self-insert-command]
> t [self-insert-command]
> m [self-insert-command]
> <tab> [minibuffer-complete]
> z [self-insert-command]
> z [self-insert-command]
> <tab> [minibuffer-complete]
> <tab> [minibuffer-complete]
> C-h l [view-lossage]
In the original example you typed 3 z's, not 2. In that case, a
single TAB is enough.
Anyway, like I said: Emacs being an editor has different design
decisions in these cases.
Reply sent
to
Stefan Kangas <stefan <at> marxist.se>
:
You have taken responsibility.
(Mon, 16 Sep 2019 03:15:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
:
bug acknowledged by developer.
(Mon, 16 Sep 2019 03:15:02 GMT)
Full text and
rfc822 format available.
Message #27 received at 34622-done <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> 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.
Since this is notabug, I'm also closing it now.
Best regards,
Stefan Kangas
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 14 Oct 2019 11:24:12 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 194 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.