From 595ca62d1c7aec15e364011c99ff986ea2e930ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felici=C3=A1n=20N=C3=A9meth?= Date: Fri, 20 Mar 2020 09:42:44 +0100 Subject: [PATCH] Ignore empty hover info This just mimics a similar check in `eglot-help-at-point'. * eglot.el (eglot-eldoc-function): Check emptiness of `contents' more carefully. GitHub-reference: fix https://github.com/joaotavora/eglot/issues/425 --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 8d1d2d71574..fe06e0c9ada 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -2296,7 +2296,7 @@ potentially rename EGLOT's help buffer." :success-fn (eglot--lambda ((Hover) contents range) (unless sig-showing (when-buffer-window - (when-let (info (and contents + (when-let (info (and (not (seq-empty-p contents)) (eglot--hover-info contents range))) (eglot--update-doc info thing-at-point))))) -- 2.39.2