* module/language/scheme/translate.scm (define-scheme-translator): Fix a
bug in this macro for the syntax-error case.
;; Looks up transformers relative to the current module at
;; compilation-time. See also the discussion of ghil-lookup in ghil.scm.
+;;
+;; FIXME shadowing lexicals?
(define (lookup-transformer head retrans)
(let* ((mod (current-module))
(val (and (symbol? head)
(pmatch (cdr exp)
,@clauses
(else
- (syntax-error loc (format #f "bad ~A" ',sym exp)))))))
+ (syntax-error l (format #f "bad ~A" ',sym) exp))))))
(define-scheme-translator quote
;; (quote OBJ)