From 5e9d78f9cf1ec4da5f24ab32d038d0d67566fbc6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Wed, 27 Apr 2022 11:11:52 +0100 Subject: [PATCH] Ensure non-null :settings param in didchangeconfiguration notif * eglot.el (eglot-signal-didChangeConfiguration): Use eglot--{} GitHub-reference: fix https://github.com/joaotavora/eglot/issues/936 --- lisp/progmodes/eglot.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 348ae4b42c9..fd82b76c5b9 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -2198,11 +2198,12 @@ When called interactively, use the currently active server" server :workspace/didChangeConfiguration (list :settings - (cl-loop for (section . v) in eglot-workspace-configuration - collect (if (keywordp section) - section - (intern (format ":%s" section))) - collect v)))) + (or (cl-loop for (section . v) in eglot-workspace-configuration + collect (if (keywordp section) + section + (intern (format ":%s" section))) + collect v) + eglot--{})))) (cl-defmethod eglot-handle-request (server (_method (eql workspace/configuration)) &key items) -- 2.39.5