summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Konstantinov <akonst89+gitlab@gmail.com>2018-08-02 23:22:10 +0000
committerAlexander Konstantinov <akonst89@googlemail.com>2018-11-12 00:27:38 +0100
commitf2f63bdd2292d1f74748a880f4408de2c306201d (patch)
tree51ce41bb7ee1c464f90fec6312323a3fb83269a8
parent1d8185af13108f55ca1f87d9f1843653714cb85a (diff)
downloadgeiser-f2f63bdd2292d1f74748a880f4408de2c306201d.tar.gz
geiser-f2f63bdd2292d1f74748a880f4408de2c306201d.tar.bz2
Make the geiser-company 'doc-buffer command work again
-rw-r--r--elisp/geiser-company.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/elisp/geiser-company.el b/elisp/geiser-company.el
index 368afb3..6108241 100644
--- a/elisp/geiser-company.el
+++ b/elisp/geiser-company.el
@@ -43,15 +43,18 @@
(defun geiser-company--doc-buffer (id)
(let* ((impl geiser-impl--implementation)
- (module (geiser-doc-module (geiser-eval--get-module) impl))
+ (module (geiser-eval--get-module))
(symbol (make-symbol id))
(ds (geiser-doc--get-docstring symbol module)))
(if (or (not ds) (not (listp ds)))
- (message "No documentation available for '%s'" symbol)
+ (progn
+ (message "No documentation available for '%s'" symbol)
+ nil)
(with-current-buffer (get-buffer-create "*company-documentation*")
(geiser-doc--render-docstring ds symbol module impl)
(current-buffer)))))
+
(defun geiser-company--location (id)
(ignore-errors
(when (not (geiser-autodoc--inhibit))