diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-07-28 01:08:25 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-07-28 01:08:25 +0200 |
commit | 71c4355d64027e50e8376a9fe8f8b8ff453c884c (patch) | |
tree | d0322d19744ba33044ac96332e117a50e77a0084 | |
parent | c2aa8aea31fb7171d4c69456398897164aecf159 (diff) | |
download | geiser-guile-71c4355d64027e50e8376a9fe8f8b8ff453c884c.tar.gz geiser-guile-71c4355d64027e50e8376a9fe8f8b8ff453c884c.tar.bz2 |
Displaying variable values in autodoc.
-rw-r--r-- | geiser/doc.scm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/geiser/doc.scm b/geiser/doc.scm index 8c00e22..0d6b451 100644 --- a/geiser/doc.scm +++ b/geiser/doc.scm @@ -49,8 +49,11 @@ ,@(let ((rest (assq-ref as 'rest))) (if rest (list "...") '()))) (key ,@(arglst as 'keyword)))) - (let ((args-list (map mkargs (if (list? args-list) args-list '())))) - (list id (cons 'args args-list)))) + (let* ((args-list (map mkargs (if (list? args-list) args-list '()))) + (value (if (null? args-list) + (format #f "~s" (symbol->object id)) + ""))) + (list id (cons 'args args-list) (cons 'value value)))) (define default-macro-args '(((required ...)))) |