emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/compat a2967e97d7 3/3: Require cl-lib at compile time


From: ELPA Syncer
Subject: [elpa] externals/compat a2967e97d7 3/3: Require cl-lib at compile time
Date: Mon, 16 Jan 2023 20:57:28 -0500 (EST)

branch: externals/compat
commit a2967e97d7a23d00ff32094518e84599111fba82
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    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 fa94a2073b..3a67e6ca2d 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 9dfe1234a1..a4de82dbe4 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.")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]