From 82c3a2eff7c990331edb3dc0281751230edd88f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Tue, 17 Aug 2021 10:12:27 +0100 Subject: [PATCH] Fall back to prompting user if eglot-alternatives fails * eglot.el (eglot-alternatives): Don't error in interactive case. GitHub-reference: fix https://github.com/joaotavora/eglot/issues/719 --- lisp/progmodes/eglot.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 71f7d7ea597..4667526c371 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -129,7 +129,10 @@ chosen (interactively or automatically)." nil t nil nil (car (car available))) available #'equal))) ((cdr (car available))) - (t (funcall err))))) + (t + ;; Don't error when used interactively, let the + ;; Eglot prompt the user for alternative (github#719) + nil)))) (t (cl-loop for (p . args) in listified for probe = (eglot--executable-find p t) -- 2.39.5