diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-06-18 13:40:54 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-06-18 13:40:54 +0200 |
commit | f1ac35fa6563827c16f175f3aedc285c58616bec (patch) | |
tree | 28b93bc0cffcc76f01603453f5f32f7aebdba01f /geiser/modules.scm | |
parent | 5e2c87483a4f043377aa38269e26cb9fad969118 (diff) | |
download | geiser-guile-f1ac35fa6563827c16f175f3aedc285c58616bec.tar.gz geiser-guile-f1ac35fa6563827c16f175f3aedc285c58616bec.tar.bz2 |
Guile: filtering gensym names in autodoc display.
Diffstat (limited to 'geiser/modules.scm')
-rw-r--r-- | geiser/modules.scm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/geiser/modules.scm b/geiser/modules.scm index 6f499dd..7ca18c9 100644 --- a/geiser/modules.scm +++ b/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)))) |