Fix source annotation bug in psyntax 'expand-body'.
authorMark H Weaver <mhw@netris.org>
Wed, 23 Jan 2013 22:27:50 +0000 (17:27 -0500)
committerMark H Weaver <mhw@netris.org>
Sun, 27 Jan 2013 19:26:00 +0000 (14:26 -0500)
* module/ice-9/psyntax.scm (expand-body): Apply source-annotation to an
  expression, not to the expression's compile-time environment.

* module/ice-9/psyntax-pp.scm: Regenerate.

module/ice-9/psyntax-pp.scm
module/ice-9/psyntax.scm

index 5dfa8c0..139c02b 100644 (file)
              (let ((e (cdar body)) (er (caar body)))
                (call-with-values
                  (lambda ()
-                   (syntax-type e er '(()) (source-annotation er) ribcage mod #f))
+                   (syntax-type e er '(()) (source-annotation e) ribcage mod #f))
                  (lambda (type value form e w s mod)
                    (let ((key type))
                      (cond ((memv key '(define-form))
index d41a0eb..4abd3c9 100644 (file)
                 (syntax-violation #f "no expressions in body" outer-form)
                 (let ((e (cdar body)) (er (caar body)))
                   (call-with-values
-                      (lambda () (syntax-type e er empty-wrap (source-annotation er) ribcage mod #f))
+                      (lambda () (syntax-type e er empty-wrap (source-annotation e) ribcage mod #f))
                     (lambda (type value form e w s mod)
                       (case type
                         ((define-form)