]> git.eshelyaron.com Git - emacs.git/commitdiff
Erase company-doc buffer in between doc requests
authorJoão Távora <joaotavora@gmail.com>
Thu, 2 Aug 2018 10:02:20 +0000 (11:02 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 2 Aug 2018 10:02:50 +0000 (11:02 +0100)
* eglot.el (eglot-completion-at-point): Erase temporary
"*eglot-doc*" buffer for company's doc.

GitHub-reference: close https://github.com/joaotavora/eglot/issues/58

lisp/progmodes/eglot.el

index f59031381009344e913a374086bb460971d20ff4..0bb162b07c9a120fb647e2bfb022cb42394e9a60 100644 (file)
@@ -1312,6 +1312,7 @@ is not active."
                            :documentation)))))
            (when documentation
              (with-current-buffer (get-buffer-create " *eglot doc*")
+               (erase-buffer)
                (insert (eglot--format-markup documentation))
                (current-buffer)))))
        :exit-function (lambda (_string _status)