all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#28714: Shouldn't minibuffer-complete add a space after sole completions?
@ 2017-10-05 16:57 積丹尼 Dan Jacobson
  2017-10-06 11:53 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: 積丹尼 Dan Jacobson @ 2017-10-05 16:57 UTC (permalink / raw)
  To: 28714; +Cc: monnier

X-Debbugs-Cc: monnier@iro.umontreal.ca

Shouldn't minibuffer-complete add a space after sole completions?

That is how bash does it.

Then the user wouldn't be worrying that there is more than one
completion and need to press TAB again to finally see "[Sole completion]".





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#28714: Shouldn't minibuffer-complete add a space after sole completions?
  2017-10-05 16:57 bug#28714: Shouldn't minibuffer-complete add a space after sole completions? 積丹尼 Dan Jacobson
@ 2017-10-06 11:53 ` Stefan Monnier
  2017-10-06 21:54 ` 積丹尼 Dan Jacobson
  2017-10-08  0:49 ` 積丹尼 Dan Jacobson
  2 siblings, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2017-10-06 11:53 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 28714

> Shouldn't minibuffer-complete add a space after sole completions?

Depends in which context: for example when completing for `M-x` or `C-x
C-f`, adding a space at the end would be an error since with the space
it would not correspond to an existing command or file name any more.

> That is how bash does it.

So does Emacs too during completion of shell commands, AFAIK.


        Stefan





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#28714: Shouldn't minibuffer-complete add a space after sole completions?
  2017-10-05 16:57 bug#28714: Shouldn't minibuffer-complete add a space after sole completions? 積丹尼 Dan Jacobson
  2017-10-06 11:53 ` Stefan Monnier
@ 2017-10-06 21:54 ` 積丹尼 Dan Jacobson
  2017-10-07  7:28   ` Eli Zaretskii
                     ` (2 more replies)
  2017-10-08  0:49 ` 積丹尼 Dan Jacobson
  2 siblings, 3 replies; 8+ messages in thread
From: 積丹尼 Dan Jacobson @ 2017-10-06 21:54 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 28714

$ touch /tmp/abbbbb /tmp/abbbbbbbbbbbbbb
Find file or URL:
 / [self-insert-command]
 t [self-insert-command]
 m [self-insert-command]
 p [self-insert-command]
 / [self-insert-command]
 a [self-insert-command]
 b [self-insert-command]
 <tab> [minibuffer-complete]
 <tab> [minibuffer-complete]
 b b [self-insert-command]
 <tab> [minibuffer-complete]
 <tab> [minibuffer-complete]

Now try the same thing in bash outside of emacs.

The user at every moment is aware how many completions there are, and it
only takes a total of two tabs vs. four in emacs.

>>>>> "SM" == Stefan Monnier <monnier@iro.umontreal.ca> writes:

SM> Depends in which context: for example when completing for `M-x` or `C-x
SM> C-f`, adding a space at the end would be an error since with the space
SM> it would not correspond to an existing command or file name any more.

How about perhaps just adding the space for the user's visual pleasure,
but not using it when processing the command / filename?

Another idea might be not requiring a second TAB before telling the user
[Sole completion] etc. but that would seem too chatty.

Anyway if he really wants a space he could use "\ ".





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#28714: Shouldn't minibuffer-complete add a space after sole completions?
  2017-10-06 21:54 ` 積丹尼 Dan Jacobson
@ 2017-10-07  7:28   ` Eli Zaretskii
  2017-10-07 15:11   ` Stefan Monnier
  2021-11-30 15:02   ` Lars Ingebrigtsen
  2 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2017-10-07  7:28 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 28714, monnier

> From: 積丹尼 Dan Jacobson
> 	<jidanni@jidanni.org>
> Date: Sat, 07 Oct 2017 05:54:44 +0800
> Cc: 28714@debbugs.gnu.org
> 
> $ touch /tmp/abbbbb /tmp/abbbbbbbbbbbbbb
> Find file or URL:
>  / [self-insert-command]
>  t [self-insert-command]
>  m [self-insert-command]
>  p [self-insert-command]
>  / [self-insert-command]
>  a [self-insert-command]
>  b [self-insert-command]
>  <tab> [minibuffer-complete]
>  <tab> [minibuffer-complete]
>  b b [self-insert-command]
>  <tab> [minibuffer-complete]
>  <tab> [minibuffer-complete]
> 
> Now try the same thing in bash outside of emacs.
> 
> The user at every moment is aware how many completions there are, and it
> only takes a total of two tabs vs. four in emacs.

"M-x icomplete-mode RET", then repeat your experiment.  Which is
better now, Emacs or Bash?

And if icomplete is still not good enough, there's a plethora of
fancier completion packages out there, both bundled and unbundled.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#28714: Shouldn't minibuffer-complete add a space after sole completions?
  2017-10-06 21:54 ` 積丹尼 Dan Jacobson
  2017-10-07  7:28   ` Eli Zaretskii
@ 2017-10-07 15:11   ` Stefan Monnier
  2021-11-30 15:02   ` Lars Ingebrigtsen
  2 siblings, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2017-10-07 15:11 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 28714

> Another idea might be not requiring a second TAB before telling the user
> [Sole completion] etc. but that would seem too chatty.

I'd welcome a patch which adds that to minibuffer.el (optionnally, as
usual in Emacs).


        Stefan





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#28714: Shouldn't minibuffer-complete add a space after sole completions?
  2017-10-05 16:57 bug#28714: Shouldn't minibuffer-complete add a space after sole completions? 積丹尼 Dan Jacobson
  2017-10-06 11:53 ` Stefan Monnier
  2017-10-06 21:54 ` 積丹尼 Dan Jacobson
@ 2017-10-08  0:49 ` 積丹尼 Dan Jacobson
  2 siblings, 0 replies; 8+ messages in thread
From: 積丹尼 Dan Jacobson @ 2017-10-08  0:49 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 28714, monnier

>>>>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:

EZ> "M-x icomplete-mode RET", then repeat your experiment.  Which is
EZ> better now, Emacs or Bash?

Waaa... icomplete-mode is way too chatty.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#28714: Shouldn't minibuffer-complete add a space after sole completions?
  2017-10-06 21:54 ` 積丹尼 Dan Jacobson
  2017-10-07  7:28   ` Eli Zaretskii
  2017-10-07 15:11   ` Stefan Monnier
@ 2021-11-30 15:02   ` Lars Ingebrigtsen
  2021-11-30 20:42     ` 積丹尼 Dan Jacobson
  2 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2021-11-30 15:02 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 28714, Stefan Monnier

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> $ touch /tmp/abbbbb /tmp/abbbbbbbbbbbbbb
> Find file or URL:
>  / [self-insert-command]
>  t [self-insert-command]
>  m [self-insert-command]
>  p [self-insert-command]
>  / [self-insert-command]
>  a [self-insert-command]
>  b [self-insert-command]
>  <tab> [minibuffer-complete]
>  <tab> [minibuffer-complete]
>  b b [self-insert-command]
>  <tab> [minibuffer-complete]
>  <tab> [minibuffer-complete]
>
> Now try the same thing in bash outside of emacs.

So you basically want it to say "Sole completion" (or something) after
the next-to-last TAB?  I guess that would make sense (as an option), and
is basically the same thing that's requested in bug#51650 (but there
it's about things that do have several completions).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#28714: Shouldn't minibuffer-complete add a space after sole completions?
  2021-11-30 15:02   ` Lars Ingebrigtsen
@ 2021-11-30 20:42     ` 積丹尼 Dan Jacobson
  0 siblings, 0 replies; 8+ messages in thread
From: 積丹尼 Dan Jacobson @ 2021-11-30 20:42 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 28714, Stefan Monnier

>>>>> "LI" == Lars Ingebrigtsen <larsi@gnus.org> writes:
LI> 積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

>> $ touch /tmp/abbbbb /tmp/abbbbbbbbbbbbbb
>> Find file or URL:
>> / [self-insert-command]
>> t [self-insert-command]
>> m [self-insert-command]
>> p [self-insert-command]
>> / [self-insert-command]
>> a [self-insert-command]
>> b [self-insert-command]
>> <tab> [minibuffer-complete]
>> <tab> [minibuffer-complete]
>> b b [self-insert-command]
>> <tab> [minibuffer-complete]
>> <tab> [minibuffer-complete]
>> 
>> Now try the same thing in bash outside of emacs.

LI> So you basically want it to say "Sole completion" (or something) after
LI> the next-to-last TAB?  I guess that would make sense (as an option), and
LI> is basically the same thing that's requested in bug#51650 (but there
LI> it's about things that do have several completions).

Yeah. Currently it takes two tabs for it to finally cough up "Sole
completion". What sense is that? It should do that with just one tab.





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-11-30 20:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-05 16:57 bug#28714: Shouldn't minibuffer-complete add a space after sole completions? 積丹尼 Dan Jacobson
2017-10-06 11:53 ` Stefan Monnier
2017-10-06 21:54 ` 積丹尼 Dan Jacobson
2017-10-07  7:28   ` Eli Zaretskii
2017-10-07 15:11   ` Stefan Monnier
2021-11-30 15:02   ` Lars Ingebrigtsen
2021-11-30 20:42     ` 積丹尼 Dan Jacobson
2017-10-08  0:49 ` 積丹尼 Dan Jacobson

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.