From 3fab3fb5718a981d61422f72010ea6d7faa753c8 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Tue, 11 Dec 2018 17:17:25 -0500 Subject: [PATCH] Say no documentation available if no documentation is available --- eldoc-box.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/eldoc-box.el b/eldoc-box.el index 74c9256..7e5bb0d 100644 --- a/eldoc-box.el +++ b/eldoc-box.el @@ -89,9 +89,11 @@ "Display hover info at point in a childframe." (interactive) (let ((doc (funcall eldoc-documentation-function))) - (when doc - (eldoc-box--display doc) - (eldoc-box--inject-quit-func)))) + (if doc + (progn + (eldoc-box--display doc) + (eldoc-box--inject-quit-func)) + (message "No documentation available")))) (defun eldoc-box-quit-frame () "Hide childframe used by eglot doc."