]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix typo in user-visible eglot-ignored-server-capabilities
authorJoão Távora <joaotavora@gmail.com>
Wed, 1 Sep 2021 09:17:24 +0000 (10:17 +0100)
committerJoão Távora <joaotavora@gmail.com>
Wed, 1 Sep 2021 09:17:36 +0000 (10:17 +0100)
The name with the typo, eglot-ignored-server-capabilites, is still
supported.

Per https://github.com/joaotavora/eglot/issues/724.

* NEWS.md: Mention change

* eglot.el (eglot-ignored-server-capabilities): New defcustom.

lisp/progmodes/eglot.el

index 4667526c371836b0dfb2fb758998591f30224e81..5fdc25327f4e0fb0fce21feb8ae91d7ea5554ff2 100644 (file)
@@ -1386,7 +1386,10 @@ Doubles as an indicator of snippet support."
       (font-lock-ensure)
       (string-trim (filter-buffer-substring (point-min) (point-max))))))
 
-(defcustom eglot-ignored-server-capabilites (list)
+(define-obsolete-variable-alias 'eglot-ignored-server-capabilites
+  'eglot-ignored-server-capabilities "1.8")
+
+(defcustom eglot-ignored-server-capabilities (list)
   "LSP server capabilities that Eglot could use, but won't.
 You could add, for instance, the symbol
 `:documentHighlightProvider' to prevent automatic highlighting