From f0b9018f521292d970cdaed99c47e02b60026e52 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Sat, 8 Jan 2022 18:08:23 -0800 Subject: [PATCH] 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 ef9b371af89..922b9225d27 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 -- 2.39.2