From 68b9c03b44a056e7a1454879b7f1b9cf050f7ddb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Mon, 19 Sep 2022 16:04:31 +0100 Subject: [PATCH] Don't use three-argument plist-get * eglot.el (eglot-handle-request): Don't use three-argument plist-get. GitHub-reference: per https://github.com/joaotavora/eglot/issues/1024 --- lisp/progmodes/eglot.el | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 7c1e849389d..0867e43e07f 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/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 () -- 2.39.5