]> git.eshelyaron.com Git - emacs.git/commit
Improve eglot-eldoc-function
authorJoão Távora <joaotavora@gmail.com>
Thu, 10 May 2018 18:23:56 +0000 (19:23 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 10 May 2018 18:24:41 +0000 (19:24 +0100)
commit522bcdf0e82546920a74239f2eeadae3af5921ed
tree8f6ba521575e4742e5ccc1400fdc5ad170b55835
parent979a90456d89da9d838d79ff0b727e4f24e0305a
Improve eglot-eldoc-function

Use the :range key if the server provided it. Also simplify code with
a new eglot--with-lsp-range macro.

* eglot.el (eglot--format-markup): Tweak comment.
(eglot--with-lsp-range): New helper macro.
(eglot--server-textDocument/publishDiagnostics)
(eglot--apply-text-edits): Use it.
(eglot-eldoc-function): Use range if server provides it.
lisp/progmodes/eglot.el