[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 9d3fdf7e0d4 2/2: Fix Eglot's command generation for code action
From: |
João Távora |
Subject: |
emacs-29 9d3fdf7e0d4 2/2: Fix Eglot's command generation for code actions |
Date: |
Thu, 16 Mar 2023 07:38:27 -0400 (EDT) |
branch: emacs-29
commit 9d3fdf7e0d4c9355b2466aca51938291ea4e26c7
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
Fix Eglot's command generation for code actions
The user command generated by eglot--code-action should always call
eglot-code-actions with a INTERACTIVE set to t.
Reported in https://github.com/joaotavora/eglot/issues/1132.
* lisp/progmodes/eglot.el (eglot--code-action): Pass INTERACTIVE=t to
eglot-code-action call.
---
lisp/progmodes/eglot.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 4448c4a01fc..5c61a444fd3 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -3371,7 +3371,7 @@ at point. With prefix argument, prompt for ACTION-KIND."
`(defun ,name (beg &optional end)
,(format "Execute `%s' code actions between BEG and END." kind)
(interactive (eglot--region-bounds))
- (eglot-code-actions beg end ,kind)))
+ (eglot-code-actions beg end ,kind t)))
(eglot--code-action eglot-code-action-organize-imports
"source.organizeImports")
(eglot--code-action eglot-code-action-extract "refactor.extract")