Skip to content

Commit

Permalink
Close joaotavora#393: completing-read in eglot-code-actions
Browse files Browse the repository at this point in the history
* eglot.el (eglot-code-actions): Remove code related to tmm
and add completing-read
  • Loading branch information
theothornhill committed Jan 1, 2020
1 parent 3879d57 commit 99cda7d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -2466,12 +2466,8 @@ potentially rename EGLOT's help buffer."
(menu `("Eglot code actions:" ("dummy" ,@menu-items)))
(action (if (listp last-nonmenu-event)
(x-popup-menu last-nonmenu-event menu)
(let ((never-mind (gensym)) retval)
(setcdr (cadr menu)
(cons `("never mind..." . ,never-mind) (cdadr menu)))
(if (eq (setq retval (tmm-prompt menu)) never-mind)
(keyboard-quit)
retval)))))
(cdr (assoc (completing-read "[Eglot] Actions: " menu-items nil t)
menu-items)))))
(eglot--dcase action
(((Command) command arguments)
(eglot-execute-command server (intern command) arguments))
Expand Down

0 comments on commit 99cda7d

Please sign in to comment.