branch: externals/eglot
commit a697084d8dfe29783985f298d38863ea5d59c632
Author: João Távora <[email protected]>
Commit: João Távora <[email protected]>
Fix #719: fall back to prompting user if eglot-alternatives fails
* eglot.el (eglot-alternatives): Don't error in interactive case.
---
eglot.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/eglot.el b/eglot.el
index 71f7d7ea59..4667526c37 100644
--- a/eglot.el
+++ b/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)