[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BIKESHED: completion faces
From: |
Juri Linkov |
Subject: |
Re: BIKESHED: completion faces |
Date: |
Tue, 05 Nov 2019 23:27:06 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
>> I've tried to implement my idea, but somehow the added highlighting gets
>> eaten before the buffer is displayed. But the attached patch should
>> illustrate it anyway.
>
> Regardless of how we implement this, the question remains: do we want to
> highlight the common-part of the prefix/basic completion differently
> from the other cases?
It seems inevitable to have a different set of faces for different
completion styles. So for the prefix/basic completion the default
could be underline for completions-first-difference (like in menus)
and inheriting completions-common-part from the 'shadow' face
to make the trivial part less prominent.
More complex completion styles could use bold for a new face
to make non-trivial parts more prominent.
> src/emacs -Q --eval '(setq completion-styles (quote
> (partial-completion)))'
> M-x re-b ?
>
> where `re-builder` would be highlighted with a "trivial common part"
> whereas `rename-buffer` would be highlighted differently.
>
> You might consider it as a feature, of course. But if not, then we'd
> have to first look at all the completions to make sure they all have
> a "trivial common part".
This really looks like a feature - it could help the users
to see the prefix in the completions list.
- Re: BIKESHED: completion faces, Dmitry Gutov, 2019/11/03
- Re: BIKESHED: completion faces, Stefan Monnier, 2019/11/03
- Re: BIKESHED: completion faces, Dmitry Gutov, 2019/11/04
- Re: BIKESHED: completion faces, Stefan Monnier, 2019/11/04
- Re: BIKESHED: completion faces, João Távora, 2019/11/04
- Re: BIKESHED: completion faces, Dmitry Gutov, 2019/11/04
- Re: BIKESHED: completion faces, João Távora, 2019/11/05
- Re: BIKESHED: completion faces, Dmitry Gutov, 2019/11/05
- Re: BIKESHED: completion faces, Stefan Monnier, 2019/11/05
- Re: BIKESHED: completion faces, João Távora, 2019/11/05
- Re: BIKESHED: completion faces,
Juri Linkov <=
- Re: BIKESHED: completion faces, Stefan Monnier, 2019/11/05
- Re: BIKESHED: completion faces, Dmitry Gutov, 2019/11/05
- Re: BIKESHED: completion faces, Stefan Monnier, 2019/11/05
- Re: BIKESHED: completion faces, Dmitry Gutov, 2019/11/06
- VOTE: Changing completions-common-part face's default, Stefan Monnier, 2019/11/06
- Re: VOTE: Changing completions-common-part face's default, João Távora, 2019/11/06
- Re: VOTE: Changing completions-common-part face's default, Dmitry Gutov, 2019/11/06
- Re: VOTE: Changing completions-common-part face's default, João Távora, 2019/11/06
- Re: VOTE: Changing completions-common-part face's default, Dmitry Gutov, 2019/11/06
- Re: VOTE: Changing completions-common-part face's default, João Távora, 2019/11/06