Say no documentation available if no documentation is available

This commit is contained in:
Yuan Fu 2018-12-11 17:17:25 -05:00
parent ae91043e87
commit 3fab3fb571
No known key found for this signature in database
GPG Key ID: 1CF5ECABEC37A901

View File

@ -89,9 +89,11 @@
"Display hover info at point in a childframe."
(interactive)
(let ((doc (funcall eldoc-documentation-function)))
(when doc
(if doc
(progn
(eldoc-box--display doc)
(eldoc-box--inject-quit-func))))
(eldoc-box--inject-quit-func))
(message "No documentation available"))))
(defun eldoc-box-quit-frame ()
"Hide childframe used by eglot doc."