]> git.eshelyaron.com Git - emacs.git/commitdiff
Fall back to prompting user if eglot-alternatives fails
authorJoão Távora <joaotavora@gmail.com>
Tue, 17 Aug 2021 09:12:27 +0000 (10:12 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 17 Aug 2021 09:12:27 +0000 (10:12 +0100)
* eglot.el (eglot-alternatives): Don't error in interactive case.

GitHub-reference: fix https://github.com/joaotavora/eglot/issues/719

lisp/progmodes/eglot.el

index 71f7d7ea597ee70e9913cfff82d04e7c8209c9a0..4667526c371836b0dfb2fb758998591f30224e81 100644 (file)
@@ -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)