summaryrefslogtreecommitdiff
path: root/scheme/plt/geiser/autodoc.ss
diff options
context:
space:
mode:
Diffstat (limited to 'scheme/plt/geiser/autodoc.ss')
-rw-r--r--scheme/plt/geiser/autodoc.ss9
1 files changed, 7 insertions, 2 deletions
diff --git a/scheme/plt/geiser/autodoc.ss b/scheme/plt/geiser/autodoc.ss
index f7a0c55..73ed24d 100644
--- a/scheme/plt/geiser/autodoc.ss
+++ b/scheme/plt/geiser/autodoc.ss
@@ -22,9 +22,14 @@
#lang scheme
-(provide autodoc update-module-cache)
+(provide autodoc update-module-cache get-help)
-(require geiser/utils geiser/modules geiser/locations)
+(require geiser/utils geiser/modules geiser/locations scheme/help)
+
+(define (get-help symbol mod)
+ (with-handlers ((exn? (lambda (e)
+ (eval `(help ,symbol #:from ,mod)))))
+ (eval `(help ,symbol))))
(define (autodoc form)
(cond ((null? form) #f)