(define (ac-macro? fn) (let ((fn (if (pair? fn) (ac-macex fn) fn))) (cond ((symbol? fn) (let ((v (namespace-variable-value (ac-global-name fn) #t (lambda () #f)))) (if (and v (ar-tagged? v) (eq? (ar-type v) 'mac)) (ar-rep v) #f))) ((and fn (ar-tagged? fn) (eq? (ar-type fn) 'mac)) (ar-rep fn)) (#t #f))))