GNU bug report logs - #48073
27.2; [Eglot] Don't bind `completion-styles' buffer locally?

Previous Next

Package: emacs;

Reported by: Augusto Stoffel <arstoffel <at> gmail.com>

Date: Tue, 27 Apr 2021 19:21:01 UTC

Severity: normal

Found in version 27.2

Done: João Távora <joaotavora <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: João Távora <joaotavora <at> gmail.com>
To: Augusto Stoffel <arstoffel <at> gmail.com>, Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 48073 <at> debbugs.gnu.org
Subject: bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally?
Date: Tue, 27 Apr 2021 20:31:43 +0100
[Message part 1 (text/plain, inline)]
On Tue, Apr 27, 2021 at 8:21 PM Augusto Stoffel <arstoffel <at> gmail.com> wrote:

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

Hi Augusto,

Yes, I think you are right about this.  And then Eglot's completion table
would use
use a category that points to the style? Is that the idea?  The end goal
is not to
lose flex-style completion for LSP-servers.

If so, can you draft a patch and attach it to your reply? By the way,
thanks for
inaugurating the Emacs bug tracker for Eglot bugs.

Also CCint Stefan Monnier since he usually has insight about this.

João
[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 20 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.