From f67ef229256de7406666dd5ffe14c229bf0b2045 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sat, 26 Sep 2009 05:07:41 +0200 Subject: PLT: Bug fix in autodoc's argument name parsing. Definitions of the form (define (foo bar) (lambda ---) --) were not being matched correctly. --- scheme/plt/geiser/autodoc.ss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scheme/plt') diff --git a/scheme/plt/geiser/autodoc.ss b/scheme/plt/geiser/autodoc.ss index 1eed644..ef73cc1 100644 --- a/scheme/plt/geiser/autodoc.ss +++ b/scheme/plt/geiser/autodoc.ss @@ -78,10 +78,10 @@ (for-each (lambda (f) (parse-datum! f store)) forms)) ((list 'define (list (list name formals ...) other ...) body ...) (add-signature! name formals store)) - ((list 'define name (list 'lambda formals body ...)) - (add-signature! name formals store)) ((list 'define (list name formals ...) body ...) (add-signature! name formals store)) + ((list 'define name (list 'lambda formals body ...)) + (add-signature! name formals store)) ((list 'define-for-syntax (list name formals ...) body ...) (add-signature! name formals store)) ((list 'define-for-syntax name (list 'lambda formals body ...)) @@ -91,7 +91,8 @@ (_ void))) (define (add-signature! name formals store) - (hash-set! store name (parse-formals formals))) + (when (symbol? name) + (hash-set! store name (parse-formals formals)))) (define (parse-formals formals) (let loop ((formals formals) (req '()) (opt '()) (keys '())) -- cgit v1.2.3