From ec7d63cbe75b2de4a8e85852f077c7ab04d87524 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sun, 18 Sep 2022 11:19:00 +0100 Subject: [PATCH] Don't return hash tables from e-w-configuration-plist * eglot.el (eglot-signal-didChangeConfiguration): Adjust. (eglot-handle-request workspace-configuration): Adjust. (eglot--workspace-configuration-plist): Don't return a hashtable. GitHub-reference: per https://github.com/joaotavora/eglot/issues/1033 --- lisp/progmodes/eglot.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index c2db7e817f2..7c1e849389d 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -2257,8 +2257,7 @@ format described above.") collect (if (keywordp section) section (intern (format ":%s" section))) collect v)) - val - eglot--{}))) + val))) (defun eglot-signal-didChangeConfiguration (server) "Send a `:workspace/didChangeConfiguration' signal to SERVER. @@ -2268,7 +2267,8 @@ When called interactively, use the currently active server" server :workspace/didChangeConfiguration (list :settings - (eglot--workspace-configuration-plist server)))) + (or (eglot--workspace-configuration-plist server) + eglot--{})))) (cl-defmethod eglot-handle-request (server (_method (eql workspace/configuration)) &key items) -- 2.39.2