aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2023-01-17 02:19:56 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2023-01-17 02:22:03 +0100
commita2967e97d7a23d00ff32094518e84599111fba82 (patch)
tree0520ec9ef128665578d40610102a16c54f0da948
parent41b3773df307e5c074f84c2edc887b79dd9c4e5d (diff)
Require cl-lib at compile time
-rw-r--r--compat-27.el1
-rw-r--r--compat-macs.el6
2 files changed, 4 insertions, 3 deletions
diff --git a/compat-27.el b/compat-27.el
index fa94a20..3a67e6c 100644
--- a/compat-27.el
+++ b/compat-27.el
@@ -23,7 +23,6 @@
;;; Code:
(eval-when-compile (load "compat-macs.el" nil t t))
-(eval-when-compile (require 'cl-lib))
(compat-declare-version "27.1")
;;;; Defined in fns.c
diff --git a/compat-macs.el b/compat-macs.el
index 9dfe123..a4de82d 100644
--- a/compat-macs.el
+++ b/compat-macs.el
@@ -21,9 +21,11 @@
;;; Code:
-;; We always require subr-x at compile since many functions have been moved
-;; around.
+;; We always require subr-x at compile time for the fboundp check
+;; since definitions have been moved around. The cl-lib macros are
+;; needed by compatibility definitions.
(require 'subr-x)
+(require 'cl-lib)
(defvar compat--version nil
"Version of the currently defined compatibility definitions.")