emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/eglot2emacs f0b9018f52 018/120: Properly print error message of


From: João Távora
Subject: feature/eglot2emacs f0b9018f52 018/120: Properly print error message of eglot-alternatives
Date: Thu, 20 Oct 2022 07:16:46 -0400 (EDT)

branch: feature/eglot2emacs
commit f0b9018f521292d970cdaed99c47e02b60026e52
Author: Brian Leung <bkleung89@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Properly print error message of eglot-alternatives
    
    * eglot.el (eglot-alternatives): Work with the listified form. This
    allows presumed executables provided as (EXECUTABLE &rest ARGS...)
    to be displayed in the error.
    
    GitHub-reference: per https://github.com/joaotavora/eglot/issues/786
---
 lisp/progmodes/eglot.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index ef9b371af8..922b9225d2 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -114,7 +114,7 @@ chosen (interactively or automatically)."
                                collect (if (listp a) a (list a))))
            (err (lambda ()
                   (error "None of '%s' are valid executables"
-                         (mapconcat #'identity alternatives ", ")))))
+                         (mapconcat #'car listified ", ")))))
       (cond (interactive
              (let* ((augmented (mapcar (lambda (a)
                                          (let ((found (eglot--executable-find



reply via email to

[Prev in Thread] Current Thread [Next in Thread]