From: "João Távora" <joaotavora@gmail.com>
To: "Mattias Engdegård" <mattias.engdegard@gmail.com>,
"Stefan Monnier" <monnier@iro.umontreal.ca>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: cus-test fails from completion-category-overrides eglot adds
Date: Tue, 25 Oct 2022 22:19:44 +0100 [thread overview]
Message-ID: <CALDnm50JAJR=JujbPzqbyWRhiWmFth1ccQ12=63Ov87akA7Okw@mail.gmail.com> (raw)
In-Reply-To: <3760C30F-C55E-4CB6-BA3B-E30D9BEC93BE@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1404 bytes --]
On Tue, Oct 25, 2022 at 8:47 PM Mattias Engdegård <
mattias.engdegard@gmail.com> wrote:
>
> The test-custom-opts test currently fails because eglot adds elements to
`completion-category-overrides` that doesn't match its declared type.
Is this test in the normal test suite executed by `make check`? I ran that
after
the merge and the only failure I got was the usual tramp-something that I
ignore.
> While eglot also adds to `completion-styles-alist`, from which the type
of `completion-category-overrides` is derived, this happens too late; the
defcustom type is already set.
I think Stefan in the expert in this area. Eglot contains a bit of code
authored by
him that enables the "backend" completion style, a kind of
"all-styles-controlled-elsewhere" style (needs a better name btw, imo).
That code isn't Eglot-specific at all and should be moved to some other
library that Eglot can depend on.
Anyway, it seems the problem is the activation of said style in a
custom-coherent way. This is not always easy or possible, but it might
be here. I seem to recall having tried doing the setting in
eglot--managed-mode (where most other settings by Eglot happen)
and coming to the conclusion that it didn't work.
But if it's just a type declaration thing, shouldn't the type declaration
be broadened (presuming Eglot isn't adding some nonsense to the var?)
João
[-- Attachment #2: Type: text/html, Size: 1792 bytes --]
next prev parent reply other threads:[~2022-10-25 21:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-25 19:47 cus-test fails from completion-category-overrides eglot adds Mattias Engdegård
2022-10-25 21:19 ` João Távora [this message]
2022-10-25 22:48 ` Stefan Monnier
2022-10-26 6:22 ` Stefan Kangas
2022-10-26 9:05 ` Mattias Engdegård
2022-10-26 11:45 ` Stefan Monnier
2022-10-26 7:44 ` Michael Albinus
2022-10-26 9:39 ` João Távora
-- strict thread matches above, loose matches on Subject: below --
2022-10-26 11:35 Mauro Aranda
2022-10-26 12:18 ` Stefan Monnier
2022-10-26 14:35 ` Mauro Aranda
2022-10-26 12:51 ` Mattias Engdegård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALDnm50JAJR=JujbPzqbyWRhiWmFth1ccQ12=63Ov87akA7Okw@mail.gmail.com' \
--to=joaotavora@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=mattias.engdegard@gmail.com \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.