summaryrefslogtreecommitdiff
path: root/scheme/racket/geiser/autodoc.rkt
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2011-08-20 03:31:54 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2011-08-20 16:29:46 +0200
commit1627471032647e6a13149242ad9547b5124c1c4f (patch)
tree56cf76f34112cf81cfd1710853de3f116685a6b7 /scheme/racket/geiser/autodoc.rkt
parent0ef26298d48bd0ae605096a187be35ef4759a722 (diff)
downloadgeiser-chez-1627471032647e6a13149242ad9547b5124c1c4f.tar.gz
geiser-chez-1627471032647e6a13149242ad9547b5124c1c4f.tar.bz2
Racket: eval geiser-eval's apply arguments properly
As Stanisław Halik reported, autodoc was receiving a mlist (instead of a list) as its argument when invoked in an R5RS context. Turns out we were evaluating geiser-eval's arguments in the wrong context (the procedure being applied and the arglist belong to the same namespace).
Diffstat (limited to 'scheme/racket/geiser/autodoc.rkt')
-rw-r--r--scheme/racket/geiser/autodoc.rkt7
1 files changed, 3 insertions, 4 deletions
diff --git a/scheme/racket/geiser/autodoc.rkt b/scheme/racket/geiser/autodoc.rkt
index 6e73271..bdd6422 100644
--- a/scheme/racket/geiser/autodoc.rkt
+++ b/scheme/racket/geiser/autodoc.rkt
@@ -1,6 +1,6 @@
;;; autodoc.rkt -- suport for autodoc echo
-;; Copyright (C) 2009, 2010 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2011 Jose Antonio Ortega Ruiz
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the Modified BSD License. You should
@@ -102,9 +102,8 @@
(dynamic-require mod id (const #f))))
(define (autodoc ids)
- (if (not (list? ids))
- '()
- (map (lambda (id) (or (autodoc* id) (list id))) ids)))
+ (map (lambda (id) (or (autodoc* id) (list id)))
+ (if (list? ids) ids '())))
(define (autodoc* id (extra #t))
(define (val)