From: João Távora Date: Fri, 29 Jan 2021 16:27:55 +0000 (+0000) Subject: #fix 608: fix bug in eglot-code-actions X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~178 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=93eb72de229a2774198364be7acb7131a71222cb;p=emacs.git #fix 608: fix bug in eglot-code-actions Suggested by GitHub user "vconcat". * eglot.el (eglot-code-actions): Use a vector for transmitting action-kind. GitHub-reference: fix https://github.com/joaotavora/eglot/issues/606 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index b5f6e6f73a1..98e0bcf14fa 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -2554,7 +2554,7 @@ at point. With prefix argument, prompt for ACTION-KIND." when (cdr (assoc 'eglot-lsp-diag (eglot--diag-data diag))) collect it)] - ,@(when action-kind `(:only ,action-kind)))))) + ,@(when action-kind `(:only [,action-kind])))))) (menu-items (or (cl-loop for action across actions ;; Do filtering ourselves, in case the `:only'