]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot-workspace-configuration's keys needn't be keywords
authorJoão Távora <joaotavora@gmail.com>
Mon, 6 Aug 2018 00:10:12 +0000 (01:10 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 6 Aug 2018 00:10:12 +0000 (01:10 +0100)
* eglot.el (eglot-signal-didChangeConfiguration): Convert
alist keys into a json-compatible plist.

GitHub-reference: per https://github.com/joaotavora/eglot/issues/59

lisp/progmodes/eglot.el

index 7e825d6746a763647b1df3fe3f0371dcde66b5b8..c3a0d518d855d8f42c84ca871b74b608358715dd 100644 (file)
@@ -1062,7 +1062,10 @@ When called interactively, use the currently active server"
    (list
     :settings
     (cl-loop for (k . v) in eglot-workspace-configuration
-             collect k collect v))))
+             collect (if (keywordp k)
+                         k
+                       (intern (format ":%s" k)))
+             collect v))))
 
 (defun eglot--signal-textDocument/didChange ()
   "Send textDocument/didChange to server."