From e8588ae858129aa3101d29d68d0a8dafe3ba8ead Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Wed, 9 Mar 2022 20:45:33 +0100 Subject: [PATCH] Don't strip invisible text when formatting hover string This was introduced in #482 due to a bad interaction with a specific server. But this solution makes hyperlinks in Eldoc buffers unclickable, because the markdown-mode function that visits a link relies on the invisible text. Fixes #865. * eglot.el (eglot--format-markup): Don't use 'filter-buffer-substring'; instead, keep invisible text. --- eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eglot.el b/eglot.el index 7bff0059..b84e1449 100644 --- a/eglot.el +++ b/eglot.el @@ -1436,7 +1436,7 @@ Doubles as an indicator of snippet support." (message-log-max nil)) (ignore-errors (delay-mode-hooks (funcall mode)))) (font-lock-ensure) - (string-trim (filter-buffer-substring (point-min) (point-max)))))) + (string-trim (buffer-string))))) (define-obsolete-variable-alias 'eglot-ignored-server-capabilites 'eglot-ignored-server-capabilities "1.8")