From b14cba5cb73dfaa94b4f277362c938bf83a48b9d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 2 Aug 2018 11:02:20 +0100 Subject: [PATCH] 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 --- lisp/progmodes/eglot.el | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.2