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

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

[elpa] externals/eglot ee980cf 39/49: Fixup last commit to fix #627


From: Stefan Monnier
Subject: [elpa] externals/eglot ee980cf 39/49: Fixup last commit to fix #627
Date: Wed, 17 Mar 2021 18:41:49 -0400 (EDT)

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

    Fixup last commit to fix #627
    
    * eglot.el (eglot-handle-request): Fixup.  Use let*
---
 eglot.el | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/eglot.el b/eglot.el
index 98a1059..86e0d01 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1572,16 +1572,16 @@ COMMAND is a symbol naming the command."
 (cl-defmethod eglot-handle-request
   (_server (_method (eql window/showMessageRequest)) &key type message actions)
   "Handle server request window/showMessageRequest"
-  (let ((actions (append actions nil)) ;; gh#627
-        (label (completing-read
-                (concat
-                 (format (propertize "[eglot] Server reports (type=%s): %s"
-                                     'face (if (<= type 1) 'error))
-                         type message)
-                 "\nChoose an option: ")
-                (or (mapcar (lambda (obj) (plist-get obj :title)) actions)
-                    '("OK"))
-                nil t (plist-get (elt actions 0) :title))))
+  (let* ((actions (append actions nil)) ;; gh#627
+         (label (completing-read
+                 (concat
+                  (format (propertize "[eglot] Server reports (type=%s): %s"
+                                      'face (if (<= type 1) 'error))
+                          type message)
+                  "\nChoose an option: ")
+                 (or (mapcar (lambda (obj) (plist-get obj :title)) actions)
+                     '("OK"))
+                 nil t (plist-get (elt actions 0) :title))))
     (if label `(:title ,label) :null)))
 
 (cl-defmethod eglot-handle-notification



reply via email to

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