emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot 122dbb9d6e 14/33: Fix typo in user-visible eglot-


From: Stefan Kangas
Subject: [elpa] externals/eglot 122dbb9d6e 14/33: Fix typo in user-visible eglot-ignored-server-capabilities
Date: Sat, 8 Jan 2022 12:30:49 -0500 (EST)

branch: externals/eglot
commit 122dbb9d6ef477c5c5f0351895652b825d6447de
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Fix typo in user-visible eglot-ignored-server-capabilities
    
    The name with the typo, eglot-ignored-server-capabilites, is still
    supported.
    
    Per #724.
    
    * NEWS.md: Mention change
    
    * eglot.el (eglot-ignored-server-capabilities): New defcustom.
---
 NEWS.md  | 6 ++++++
 eglot.el | 5 ++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/NEWS.md b/NEWS.md
index ec39654929..4507278b4c 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -12,6 +12,12 @@ Thanks to Brian Cully for the minimalist approach.
 (also thanks to Felipe Lema who conducted many early experiments in
 [#463][github#463])
 
+##### `eglot-ignored-server-capabilities` now correctly spelled 
([#724][github#724])
+
+This user-visible variable used to be spelled
+`eglot-ignored-server-capabilites`, which is still an valid but
+obsolete name.
+
 ##### Manage cross-referenced files outside project ([#76][github#76], 
([#686][github#686], ([#695][github#695])
 
 This is activated by a new customization option
diff --git a/eglot.el b/eglot.el
index 4667526c37..5fdc25327f 100644
--- a/eglot.el
+++ b/eglot.el
@@ -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



reply via email to

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