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>
Fri, 13 Feb 2015 00:18:54 +0000 (19:18 -0500)
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))))