From: João Távora Date: Mon, 6 Aug 2018 00:10:12 +0000 (+0100) Subject: Eglot-workspace-configuration's keys needn't be keywords X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~460 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ea04e60ce5a9b8ca158668d7611331ab7713f0d3;p=emacs.git Eglot-workspace-configuration's keys needn't be keywords * eglot.el (eglot-signal-didChangeConfiguration): Convert alist keys into a json-compatible plist. GitHub-reference: per https://github.com/joaotavora/eglot/issues/59 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 7e825d6746a..c3a0d518d85 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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."