Do not defer expansion of internal define-syntax forms.
authorMark H Weaver <mhw@netris.org>
Wed, 23 Jan 2013 22:49:38 +0000 (17:49 -0500)
committerMark H Weaver <mhw@netris.org>
Thu, 31 Jan 2013 06:05:58 +0000 (01:05 -0500)
commitceb7f9cc126f50e0cc8956b80ac5d111580b23c8
tree6132d357c5a33db16d96d2d80966b2cc49f52bb4
parent32e3c505c37ede7f096239574c3ac46206bf0cef
Do not defer expansion of internal define-syntax forms.

* module/ice-9/psyntax.scm (expand-body): As required by R6RS, evaluate
  the right-hand-sides of internal 'define-syntax' forms and add their
  transformers to the compile-time environment immediately, so that the
  newly-defined keywords may be used in definition context within the
  same lexical contour.  Fixes #13509.
module/ice-9/psyntax-pp.scm
module/ice-9/psyntax.scm