emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/eglot e756bf4547 1/2: Per #1024: Don't use three-argume


From: ELPA Syncer
Subject: [elpa] externals/eglot e756bf4547 1/2: Per #1024: Don't use three-argument plist-get
Date: Mon, 19 Sep 2022 11:57:41 -0400 (EDT)

branch: externals/eglot
commit e756bf454791f8b9b675b1b591e476b92785a7ba
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Per #1024: Don't use three-argument plist-get
    
    * eglot.el (eglot-handle-request): Don't use three-argument
    plist-get.
---
 eglot.el | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/eglot.el b/eglot.el
index 7c1e849389..0867e43e07 100644
--- a/eglot.el
+++ b/eglot.el
@@ -2285,13 +2285,15 @@ When called interactively, use the currently active 
server"
                          (project-root (eglot--project server)))))
                 (setq-local major-mode (eglot--major-mode server))
                 (hack-dir-local-variables-non-file-buffer)
-                (plist-get (eglot--workspace-configuration-plist server) 
section
-                           (lambda (section wsection)
-                             (string=
-                              (if (keywordp wsection)
-                                  (substring (symbol-name wsection) 1)
-                                wsection)
-                              section))))))
+                (cl-loop for (wsection o)
+                         on (eglot--workspace-configuration-plist server)
+                         by #'cddr
+                         when (string=
+                               (if (keywordp wsection)
+                                   (substring (symbol-name wsection) 1)
+                                 wsection)
+                               section)
+                         return o))))
           items)))
 
 (defun eglot--signal-textDocument/didChange ()



reply via email to

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