From: João Távora Date: Thu, 2 Aug 2018 10:02:20 +0000 (+0100) Subject: Erase company-doc buffer in between doc requests X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~463 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b14cba5cb73dfaa94b4f277362c938bf83a48b9d;p=emacs.git Erase company-doc buffer in between doc requests * 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 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index f5903138100..0bb162b07c9 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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)