]> git.eshelyaron.com Git - emacs.git/commit
Use filter-buffer-substring to get buffer text
authorAndrii Kolomoiets <andreyk.mad@gmail.com>
Tue, 26 May 2020 20:03:39 +0000 (23:03 +0300)
committerGitHub <noreply@github.com>
Tue, 26 May 2020 20:03:39 +0000 (21:03 +0100)
commit5e0cd484ecd9abc9b1a9e1b14468620b9de9c9cc
tree817705ebc1b7f0f2064cd5ded5f2080b0ccc2e05
parente14934fef20460716c9e4588749c46e979dc154f
Use filter-buffer-substring to get buffer text

This way modes used to represent hover info text, such as
gfm-view-mode can e.g. filter out invisible text by providing own
`filter-buffer-substring-function'.

* eglot.el (eglot--format-markup): Use `filter-buffer-substring'.

GitHub-reference: close https://github.com/joaotavora/eglot/issues/482
lisp/progmodes/eglot.el