From cec2f415fb0d113787a16cdba7bded27f2e6dfc2 Mon Sep 17 00:00:00 2001 From: Robin Templeton Date: Mon, 11 Aug 2014 06:05:45 -0400 Subject: execute top level require forms (Best-ability ChangeLog annotation added by Christopher Allan Webber.) * module/language/elisp/boot.el (require): New compiler macro. --- module/language/elisp/boot.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/language/elisp/boot.el b/module/language/elisp/boot.el index 4e8347f2f..e6d3994fa 100644 --- a/module/language/elisp/boot.el +++ b/module/language/elisp/boot.el @@ -790,3 +790,7 @@ (defun %set-eager-macroexpansion-mode (ignore) nil) + +(%define-compiler-macro require (form) + `(eval-when (:compile-toplevel :load-toplevel :execute) + (funcall #'require ,@(cdr form)))) -- cgit v1.2.3