From: João Távora Date: Tue, 17 Aug 2021 09:12:27 +0000 (+0100) Subject: Fall back to prompting user if eglot-alternatives fails X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~125 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=82c3a2eff7c990331edb3dc0281751230edd88f7;p=emacs.git 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 --- 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)