summaryrefslogtreecommitdiff
path: root/elisp
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
commit18943b0b9f8b31e86dbdb0919af044e363eb33ff (patch)
treea403bb0ad72a812b6730811870473ecbdbdfaf49 /elisp
parent678e21c7256db8a73e40df5ada3bc828e5091c7b (diff)
downloadgeiser-18943b0b9f8b31e86dbdb0919af044e363eb33ff.tar.gz
geiser-18943b0b9f8b31e86dbdb0919af044e363eb33ff.tar.bz2
Recognise empty doc string in Emacs side. Small refactorings.
Diffstat (limited to 'elisp')
-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))