From f93003a9a286f08035ac6993ea50da0fa29bfe12 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 2 Oct 2022 22:24:42 +0200 Subject: [PATCH] refactor!(lib): remove eval-when-compile! BREAKING CHANGE: Removes the eval-when-compile! macro. I recently discovered cl-eval-when and it serves this macro's purpose well enough (and is autoloaded+built-in). This macro wasn't used anywhere in (published) Doom code, however, and users shouldn't really be using it, so its removal is unlikely to cause any actual breakage. --- lisp/doom-lib.el | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lisp/doom-lib.el b/lisp/doom-lib.el index 473f52edd..33fce16d1 100644 --- a/lisp/doom-lib.el +++ b/lisp/doom-lib.el @@ -393,15 +393,6 @@ See `eval-if!' for details on this macro's purpose." (when (eval cond) (macroexp-progn body))) -(defmacro eval-when-compile! (&rest body) - "Evaluate BODY *only* during byte-compilation. - -Unlike `eval-when-compile', which is equivalent to `progn' in interpreted code, -this macro's BODY will only be evaluated during byte-compilation." - (declare (indent 0)) - (when (bound-and-true-p byte-compile-current-file) - (ignore (eval (macroexp-progn body) t)))) - (defmacro versionp! (v1 comp v2 &rest comps) "Perform compound version checks.