]> git.eshelyaron.com Git - emacs.git/commitdiff
Consider tramp in eglot-alternatives
authorLiu Hui <ilupin@users.noreply.github.com>
Fri, 11 Jun 2021 22:49:19 +0000 (06:49 +0800)
committerGitHub <noreply@github.com>
Fri, 11 Jun 2021 22:49:19 +0000 (23:49 +0100)
* 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

index 4ead874eec53ad5b560715b8e4c934f197729353..a6c60e95781190b4153f583b57bcadaf1486e142 100644 (file)
@@ -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:"