From: Michal Krzywkowski Date: Mon, 15 Oct 2018 20:58:14 +0000 (+0200) Subject: Eglot-ignored-server-capabilites: prefer all choices over "other" X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~425 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=aa8653cc3f0ecc0c0652fedc7e9d7835aabee8ed;p=emacs.git Eglot-ignored-server-capabilites: prefer all choices over "other" Previously the "Other" choice matched every value, so it was always shown in the customize buffer. * eglot.el (eglot-ignored-server-capabilites): Make the "Other" choice the last possible option. --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 8014024ecd8..b6606830165 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -747,7 +747,6 @@ You could add, for instance, the symbol under cursor." :type '(repeat (choice - (symbol :tag "Other") (const :tag "Documentation on hover" :hoverProvider) (const :tag "Code completion" :completionProvider) (const :tag "Function signature help" :signatureHelpProvider) @@ -767,7 +766,8 @@ under cursor." (const :tag "Highlight links in document" :documentLinkProvider) (const :tag "Decorate color references" :colorProvider) (const :tag "Fold regions of buffer" :foldingRangeProvider) - (const :tag "Execute custom commands" :executeCommandProvider)))) + (const :tag "Execute custom commands" :executeCommandProvider) + (symbol :tag "Other")))) (defun eglot--server-capable (&rest feats) "Determine if current server is capable of FEATS."