summaryrefslogtreecommitdiff
path: root/geiser/introspection.scm
diff options
context:
space:
mode:
Diffstat (limited to 'geiser/introspection.scm')
-rw-r--r--geiser/introspection.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/geiser/introspection.scm b/geiser/introspection.scm
index 14cd021..f6bb152 100644
--- a/geiser/introspection.scm
+++ b/geiser/introspection.scm
@@ -38,7 +38,9 @@
(else (loop (car syms) (cdr syms))))))
(define (symbol->obj sym)
- (and (symbol? sym) (module-ref (current-module) sym)))
+ (and (symbol? sym)
+ (module-defined? (current-module) sym)
+ (module-ref (current-module) sym)))
(define (obj-args obj)
(cond ((not obj) #f)