From: João Távora Date: Fri, 8 Dec 2023 19:13:55 +0000 (+0000) Subject: Eglot: unbreak : spec in C-u M-x eglot (bug#67682) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=588d4c86d72f76e9d416225d99c9d359e0608982;p=emacs.git Eglot: unbreak : spec in C-u M-x eglot (bug#67682) * lisp/progmodes/eglot.el (eglot--guess-contact): Fix. --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index d410367f902..608389f1c05 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1280,14 +1280,18 @@ be guessed." (concat "`%s' not found in PATH, but can't form" " an interactive prompt for to fix %s!") program guess)))))) + (input (and prompt (read-shell-command prompt + full-program-invocation + 'eglot-command-history))) (contact - (or (and prompt - (split-string-and-unquote - (read-shell-command - prompt - full-program-invocation - 'eglot-command-history))) - guess))) + (if input + (if (string-match + "^[\s\t]*\\(.*\\):\\([[:digit:]]+\\)[\s\t]*$" input) + ;; : special case (bug#67682) + (list (match-string 1 input) + (string-to-number (match-string 2 input))) + (split-string-and-unquote input)) + guess))) (list managed-modes (eglot--current-project) class contact language-ids))) (defvar eglot-lsp-context)