bug-gnu-emacs
[Top][All Lists]
Advanced

[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 16:37:58 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> Binding `completion-styles' buffer locally can lead to problems on
>> alternative completion UIs, say if the minibuffer is involved (this used
>> to happen with Consult's compeltion in region until recently).

Indeed; another reason it's problematic is that it's a user-config, so
changing it programatically will sooner or later interfere in
undesirable ways.

>> 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]