only evaluate top-level macro definitions
authorRobin Templeton <robin@terpri.org>
Mon, 11 Aug 2014 10:04:28 +0000 (06:04 -0400)
committerRobin Templeton <robin@terpri.org>
Tue, 21 Apr 2015 23:36:30 +0000 (19:36 -0400)
module/language/elisp/compile-tree-il.scm

index 702272e..daa0623 100644 (file)
                                           args
                                           body))))
                   (make-const loc name))))
-           (compile tree-il #:from 'tree-il #:to 'value)
+           (when (fluid-ref toplevel?)
+             (compile tree-il #:from 'tree-il #:to 'value))
            tree-il)))
     (else (report-error loc "bad defmacro" args))))