From: Felicián Németh Date: Fri, 20 Mar 2020 08:42:44 +0000 (+0100) Subject: Ignore empty hover info X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~249 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=595ca62d1c7aec15e364011c99ff986ea2e930ae;p=emacs.git 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 --- 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)))))