From 7d1375df484e10668552ba23cea0778bf9e374c4 Mon Sep 17 00:00:00 2001 From: Liu Hui Date: Sat, 12 Jun 2021 06:49:19 +0800 Subject: [PATCH] Consider tramp in eglot-alternatives * eglot.el (eglot-alternatives): Use eglot--executable-find. Copyright-paperwork-exempt: yes GitHub-reference: fix https://github.com/joaotavora/eglot/issues/702 --- lisp/progmodes/eglot.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 4ead874eec5..a6c60e95781 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -104,7 +104,8 @@ argument." (lambda (&optional interactive) (let* ((listified (cl-loop for a in alternatives collect (if (listp a) a (list a)))) - (available (cl-remove-if-not #'executable-find listified :key #'car))) + (available (cl-remove-if-not (lambda (a) (eglot--executable-find a t)) + listified :key #'car))) (cond ((and interactive (cdr available)) (let ((chosen (completing-read "[eglot] More than one server executable available:" -- 2.39.2