aboutsummaryrefslogtreecommitdiff
path: root/compat.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2023-01-06 19:49:24 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2023-01-06 20:03:12 +0100
commit02f4d3a795fdfc9cf4da6086137e3bfa39747cba (patch)
treee1f2e3dbf60a6f383f2ef356bedbd14a8baeff32 /compat.el
parentdca7636e62f66241f5d026859e31a2d7c4590948 (diff)
compat-tests: Test that no unnecessary compat-* files are loaded
Diffstat (limited to 'compat.el')
-rw-r--r--compat.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/compat.el b/compat.el
index 7e37e14..269b947 100644
--- a/compat.el
+++ b/compat.el
@@ -42,7 +42,8 @@
;;; Code:
-(when (< emacs-major-version 29) (require 'compat-29))
+(when (eval-when-compile (< emacs-major-version 29))
+ (require 'compat-29))
(defmacro compat-function (fun)
"Return compatibility function symbol for FUN.