summaryrefslogtreecommitdiff
path: root/scheme/guile/geiser/introspection.scm
diff options
context:
space:
mode:
Diffstat (limited to 'scheme/guile/geiser/introspection.scm')
-rw-r--r--scheme/guile/geiser/introspection.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/scheme/guile/geiser/introspection.scm b/scheme/guile/geiser/introspection.scm
index cd48740..14cd021 100644
--- a/scheme/guile/geiser/introspection.scm
+++ b/scheme/guile/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