bug#43440: completion in minibuffer missing initial asterisk

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

bug#43440: completion in minibuffer missing initial asterisk

積丹尼 Dan Jacobson
What's the deal? All the completions start with a "*",
so why doesn't the one being built in the minibuffer have it?



I typed:
 C-x b [switch-to-buffer]
 u [self-insert-command]
 n [self-insert-command]
 s [self-insert-command]
 <tab> [minibuffer-complete]
 <tab> [minibuffer-complete]

emacs-version "26.3" Tested with emacs -q too.

30194-0.jpg (32K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

bug#43440: completion in minibuffer missing initial asterisk

Stephen Berman
On Wed, 16 Sep 2020 13:54:03 +0800 積丹尼 Dan Jacobson <[hidden email]> wrote:

> What's the deal? All the completions start with a "*",
> so why doesn't the one being built in the minibuffer have it?

It's not just "*" but any string that all completion candidates share.
I think this is related to the issue raised in bug#38476 (which is a
feature request following on bug#38458).

Steve Berman



Reply | Threaded
Open this post in threaded view
|

bug#43440: completion in minibuffer missing initial asterisk

Lars Ingebrigtsen
Stephen Berman <[hidden email]> writes:

> On Wed, 16 Sep 2020 13:54:03 +0800 積丹尼 Dan Jacobson
> <[hidden email]> wrote:
>
>> What's the deal? All the completions start with a "*",
>> so why doesn't the one being built in the minibuffer have it?
>
> It's not just "*" but any string that all completion candidates share.
> I think this is related to the issue raised in bug#38476 (which is a
> feature request following on bug#38458).

It's kinda similar, but in this case the problem is more glaring -- all
the completion candidates share the same prefix, so why isn't that
prefix included in the completion string?

Here's the reproducible test case:

(progn
  (switch-to-buffer "foobar1")
  (switch-to-buffer "foobar2")
  (switch-to-buffer "*scratch*")
  (call-interactively 'switch-to-buffer))

Eval and then type `bar TAB':




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

attachment0 (63K) Download Attachment