[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally?
From: |
Stefan Monnier |
Subject: |
bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally? |
Date: |
Tue, 27 Apr 2021 18:37:19 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> >> It seems that a more appropriate way to override the completion style
>> >> would be to include a category in the completion table metadata, and
> add
>> >> a corresponding entry to `completion-category-defaults', which can be
>> >> done globally.
>>
>> That's right. The advantage being also that the user can additionally
>> override that default style with `completion-category-overrides'.
>>
>>
>> Stefan
>
>
> Thanks. But can you confirm my hypothesis that it is possible to make
> its completion table function in the `flex` style automatically,
Yes.
> - having Eglot add an entry to completion-category-defaults or
> completion-category-overrides (which one?)
`completion-category-overrides` is a user config. Don't touch it.
> - having Eglot point to that entry in its completion table?
There's no real notion of "point to", but it can use a completion-table
whose `category` says `eglot` and then use a corresponding entry in
`completion-category-defaults`, yes.
And those rare users who don't like `flex` (or who want the new
`mind-reader` completion style instead) can override it in their
`completion-category-overrides`.
Stefan
- bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally?, Augusto Stoffel, 2021/04/27
- bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally?, João Távora, 2021/04/27
- bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally?, Stefan Monnier, 2021/04/27
- bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally?, João Távora, 2021/04/27
- bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally?,
Stefan Monnier <=
- bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally?, João Távora, 2021/04/27
- bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally?, Stefan Monnier, 2021/04/27
- bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally?, Augusto Stoffel, 2021/04/28
- bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally?, João Távora, 2021/04/28
bug#48073: [External] : bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally?, Drew Adams, 2021/04/27