From: João Távora Date: Fri, 26 Feb 2021 19:30:30 +0000 (+0000) Subject: Fixup last commit to fix X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~162 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7c66a3e78957eea2fd5c80ffceeee4ad0c899927;p=emacs.git Fixup last commit to fix * eglot.el (eglot-handle-request): Fixup. Use let* GitHub-reference: https://github.com/joaotavora/eglot/issues/627 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 98a1059e157..86e0d01118f 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/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