syntax
(quote-syntax datum)
When #:local is specified, then all scopes in the syntax object’s lexical information are preserved. When #:local is omitted, then the scope sets within datum are pruned to omit the scope for any binding form that appears between the quote-syntax form and the enclosing top-level context, module body, or phase level crossing, whichever is closer.
Unlike syntax (#'), quote-syntax does not substitute pattern variables bound by with-syntax , syntax-parse , or syntax-case .
#t
#<syntax:eval:78:0 (1 2 3)>
#<syntax:eval:79:0 (a b c)>
#t
#f
Changed in version 6.3 of package base: Added scope pruning and support for #:local.