summaryrefslogtreecommitdiff
path: root/elisp/geiser-doc.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-15 01:32:31 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-15 01:32:31 +0100
commitf753d35c186ad448e70e84afbc91fb37db2fbb57 (patch)
tree579c37091f8287200b842822fb98d44921e514ed /elisp/geiser-doc.el
parent6fab966acd979bedcd12adacc793999e459cac52 (diff)
downloadgeiser-guile-f753d35c186ad448e70e84afbc91fb37db2fbb57.tar.gz
geiser-guile-f753d35c186ad448e70e84afbc91fb37db2fbb57.tar.bz2
Recognise empty doc string in Emacs side. Small refactorings.
Diffstat (limited to 'elisp/geiser-doc.el')
-rw-r--r--elisp/geiser-doc.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/elisp/geiser-doc.el b/elisp/geiser-doc.el
index 7113b25..9dcb951 100644
--- a/elisp/geiser-doc.el
+++ b/elisp/geiser-doc.el
@@ -51,8 +51,8 @@ With prefix argument, ask for symbol (with completion)."
(geiser-completion--read-symbol "Symbol: " (symbol-at-point)))))
(when symbol
(let ((ds (geiser-doc--get-docstring symbol)))
- (if (not (stringp ds))
- (message "No docstring available for '%s'" symbol)
+ (if (or (not (stringp ds)) (zerop (length ds)))
+ (message "No documentation available for '%s'" symbol)
(geiser-doc--with-buffer
(erase-buffer)
(insert ds))