diff options
author | Robin Templeton <robin@terpri.org> | 2014-08-11 06:05:45 -0400 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2020-04-04 16:25:55 +0200 |
commit | cec2f415fb0d113787a16cdba7bded27f2e6dfc2 (patch) | |
tree | 056d9dc72796b17d2c605c224153b3b3bf083c04 /module | |
parent | 1aa5297b4dcbe0540f85541a53006ce8e9fee691 (diff) |
execute top level require forms
(Best-ability ChangeLog annotation added by Christopher Allan Webber.)
* module/language/elisp/boot.el (require): New compiler macro.
Diffstat (limited to 'module')
-rw-r--r-- | module/language/elisp/boot.el | 4 |
1 files changed, 4 insertions, 0 deletions
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)))) |