]> git.eshelyaron.com Git - emacs.git/commit
Fix small problems around eglot's help buffer
authorJoão Távora <joaotavora@gmail.com>
Sun, 31 May 2020 10:49:51 +0000 (11:49 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sun, 31 May 2020 10:58:25 +0000 (11:58 +0100)
commit29dbbcc185471136a8dc874619dbf8f2ffba8fa6
tree856ef2ea6e48ca58dbe884c0ded06eafb9551f93
parenta56c77183a9b59409701cfd78e38b5a50970857d
Fix small problems around eglot's help buffer

Specifically:

- correctly format the message shown to the user about doc being truncated
- don't show message if the buffer is showing in some frame's window
- correctly name the help buffer switched to with `C-h .'.

This is still not ideal:

- When the `C-h .' suggestion is shown to the user, typing that keybinding
  shouldn't result in a new LSP request to fetch probably the same info;
- All this functionality belongs in eldoc.el.

* eglot.el (eglot-help-at-point): Fix buffer name.
(eglot--update-doc): Provide more help.
lisp/progmodes/eglot.el