summaryrefslogtreecommitdiff
path: root/scheme/guile/geiser/modules.scm
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-06-18 13:40:54 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-06-18 13:40:54 +0200
commitf7b672621bc80c93c3788bc99ce850f4edc50aaa (patch)
treefc2c87172e02e0f1ad69ad43a9b03365013e11b8 /scheme/guile/geiser/modules.scm
parentce3ef41414442b345e5e8d9f064f0d7531addea5 (diff)
downloadgeiser-guile-f7b672621bc80c93c3788bc99ce850f4edc50aaa.tar.gz
geiser-guile-f7b672621bc80c93c3788bc99ce850f4edc50aaa.tar.bz2
Guile: filtering gensym names in autodoc display.
Diffstat (limited to 'scheme/guile/geiser/modules.scm')
-rw-r--r--scheme/guile/geiser/modules.scm14
1 files changed, 7 insertions, 7 deletions
diff --git a/scheme/guile/geiser/modules.scm b/scheme/guile/geiser/modules.scm
index 6f499dd..7ca18c9 100644
--- a/scheme/guile/geiser/modules.scm
+++ b/scheme/guile/geiser/modules.scm
@@ -25,7 +25,7 @@
(define (module-name? module-name)
(and (list? module-name)
- (> (length module-name) 0)
+ (not (null? module-name))
(every symbol? module-name)))
(define (symbol-module sym . all)
@@ -67,13 +67,13 @@
(define (all-modules)
(define (maybe-name m)
- (let ((name (format "~A" (module-name m))))
- (and (not (string-match "^[(]#[{]" name)) name)))
+ (let ((name (module-name m)))
+ (and (not (gensym? (car name)))
+ (format "~A" name))))
(let* ((guile (resolve-module '(guile)))
- (roots (remove (lambda (m) (eq? m guile)) (root-modules))))
- (cons "(guile)"
- (filter-map maybe-name
- (apply append (map all-child-modules roots))))))
+ (roots (remove (lambda (m) (eq? m guile)) (root-modules)))
+ (children (append-map all-child-modules roots)))
+ (cons "(guile)" (filter-map maybe-name children))))
(define* (all-child-modules mod #:optional (seen '()))
(let ((cs (filter (lambda (m) (not (member m seen))) (submodules mod))))