emacs-diffs
[Top][All Lists]
Advanced

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

feature/eglot2emacs ec7d63cbe7 105/120: Don't return hash tables from e-


From: João Távora
Subject: feature/eglot2emacs ec7d63cbe7 105/120: Don't return hash tables from e-w-configuration-plist
Date: Thu, 20 Oct 2022 07:17:07 -0400 (EDT)

branch: feature/eglot2emacs
commit ec7d63cbe75b2de4a8e85852f077c7ab04d87524
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    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 c2db7e817f..7c1e849389 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)



reply via email to

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