summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2026-05-30 14:28:32 +0100
committerJoão Távora <joaotavora@gmail.com>2026-05-30 18:22:54 +0100
commitaac5e0457aeef68ddc64b25adf5039e69f3fdc17 (patch)
tree26ea693402713790f9998c9b486642674034c471 /etc
parentec3d662de0bab08f8b68666d13c662c3193c2645 (diff)
Eglot: replace eglot-prefer-plaintext with eglot-documentation-renderer
The old boolean 'eglot-prefer-plaintext' is replaced by the more expressive 'eglot-documentation-renderer', which can hold a major-mode symbol, t (plain text), or nil (auto-detect each time). By selecting a renderer once at startup the repeated per-request lookups are avoided, which helps with the slowness reported in bug#81150. * lisp/progmodes/eglot.el (eglot-prefer-plaintext): Declare obsolete alias to 'eglot-documentation-renderer'. (eglot-documentation-renderer): New defcustom, reworked from from eglot-prefer-plaintext. (eglot--accepted-formats): Use new variable. (eglot--format-markup): Use new variable. * etc/EGLOT-NEWS: Announce change. * doc/misc/eglot.texi (Customization Variables): Document eglot-documentation-renderer.
Diffstat (limited to 'etc')
-rw-r--r--etc/EGLOT-NEWS12
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/EGLOT-NEWS b/etc/EGLOT-NEWS
index eb4040d107e..f0f595fa500 100644
--- a/etc/EGLOT-NEWS
+++ b/etc/EGLOT-NEWS
@@ -32,11 +32,15 @@ New key bindings: 'k' shuts down, 'r' reconnects, 'e' visits the events
buffer, 'w' shows workspace configuration, and 'RET' invokes
'eglot-describe-connection'.
-** Eglot uses new built-in 'markdown-ts-mode' of Emacs 31 (bug#80127)
+** New LSP documentation rendering backends (bug#80127)
-This means that on newer versions of Emacs the external
-'markdown-mode.el' package does not need to be installed to render
-Markdown content.
+Eglot uses new built-in 'markdown-ts-mode' of Emacs 31, which means that
+on newer versions of Emacs the external 'markdown-mode.el' package does
+not need to be installed to render Markdown content.
+
+The variable 'eglot-documentation-renderer' replaces the now-obsolete
+'eglot-prefer-plaintext'. By default, the variable selects a markdown
+renderer to use throughout the session.
* Changes in Eglot 1.23 (2/4/2026)