The previous commit for https://github.com/joaotavora/eglot/issues/526 was completely botched. One has to check
current-prefix-arg for the presence of C-u, not eglot--guess-contact
INTERACTIVE arg.
* eglot.el (eglot--guess-contact): Be more careful when
processing guess.
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/593
(guess (if (functionp guess)
(funcall guess interactive)
guess))
- (class (or (and (not interactive)
- (consp guess) (symbolp (car guess))
- (prog1 (car guess) (setq guess (cdr guess))))
+ (class (or (and (consp guess) (symbolp (car guess))
+ (prog1 (unless current-prefix-arg (car guess))
+ (setq guess (cdr guess))))
'eglot-lsp-server))
(program (and (listp guess)
(stringp (car guess))