From a2967e97d7a23d00ff32094518e84599111fba82 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Tue, 17 Jan 2023 02:19:56 +0100 Subject: Require cl-lib at compile time --- compat-27.el | 1 - compat-macs.el | 6 ++++-- 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.") -- cgit v1.0