On Thu, Jun 26 2025, Dirk-Jan C. Binnema wrote:
> On Thursday Jun 26 2025, 'Yuri D'Elia' via mu-discuss wrote:
>> If I attempt to complete a random substring such as "go" I do get the
>> expected cycling on tab, so it does work.. but seems inconsistent. I've
>> found plenty of cases where I'm not prompted for alternatives even
>> though cfind works exactly as I would expect.
>>
>> Did I possibly mess up some customization?
>
> Do you use the default Emacs completion mechanism? The details of the
> completion / matching in influenced by the exact completion method you
> use, so best to try an reproduce with the default.
I'm using a rather vanilla completion setup. I'm using vertico as the
default completing-read function, but by default you get the cycling
behavior of completion-in-region, so it doesn't actually get there.
> There's `M-x mu4e-contacts-info' which should give you a buffer with all
> contacts known to mu4e.
Contacts are indeed all there, as you would expect.
After fudging a bit, I noticed it seems that the default "basic"
completion style in completion-styles is causing these odd candidates to
be chosen (with some logic, I guess).
If I force
(setq completion-styles '(substring))
the behavior is identical to the command line. For reference, the
default completion-styles on current emacs master (which I didn't
customize) is:
'(basic partial-completion emacs22)