* eldoc.el (eglot-eldoc-function): Use eglot--format-markup.
(subr-x): Require it.
(eglot--format-markup): Pacify byte-compiler.
(require 'warnings)
(require 'flymake)
(require 'xref)
+(require 'subr-x)
\f
;;; User tweakable stuff
"Format MARKUP according to LSP's spec."
(cond ((stringp markup)
(with-temp-buffer
- (ignore-errors (funcall 'markdown-mode))
+ (ignore-errors (funcall (intern "markdown-mode"))) ;escape bytecompiler
(font-lock-ensure)
(insert markup)
(string-trim (buffer-string))))
:position (eglot--pos-to-lsp-position))
:success-fn (eglot--lambda (&key contents _range)
(eldoc-message
- (mapconcat #'eglot--format
+ (mapconcat #'eglot--format-markup
(if (vectorp contents)
contents
(list contents))