summaryrefslogtreecommitdiff
path: root/geiser/introspection.scm
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-14 20:52:27 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-14 20:52:27 +0100
commit56671f6b05dc9a4a596a7ed8823ecadcf5b05cb2 (patch)
tree1130e7c9ba4a4f6d9d6a0b38d8cea6936f70a733 /geiser/introspection.scm
parent8cd52599b79c2715f520f18a47b5198945e44187 (diff)
downloadgeiser-guile-56671f6b05dc9a4a596a7ed8823ecadcf5b05cb2.tar.gz
geiser-guile-56671f6b05dc9a4a596a7ed8823ecadcf5b05cb2.tar.bz2
New command to get docstrings (C-cC-d).
Diffstat (limited to 'geiser/introspection.scm')
-rw-r--r--geiser/introspection.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/geiser/introspection.scm b/geiser/introspection.scm
index cd48740..14cd021 100644
--- a/geiser/introspection.scm
+++ b/geiser/introspection.scm
@@ -28,6 +28,7 @@
#:export (arguments completions symbol-location docstring)
#:use-module (system vm program)
#:use-module (ice-9 session)
+ #:use-module (ice-9 documentation)
#:use-module (srfi srfi-1))
(define (arguments sym . syms)
@@ -118,4 +119,8 @@
(define (make-location-from-module-name name)
(make-location (module-filename name) #f))
+
+(define (docstring sym)
+ (object-documentation (symbol->obj sym)))
+
;;; introspection.scm ends here