[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat 72a8a34d49 1/2: Check compat-version property wh
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat 72a8a34d49 1/2: Check compat-version property when generating tests |
Date: |
Mon, 4 Apr 2022 05:57:21 -0400 (EDT) |
branch: externals/compat
commit 72a8a34d49118a0b9f3a6671025b4dd5148cc140
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Check compat-version property when generating tests
---
compat-tests.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/compat-tests.el b/compat-tests.el
index e4e536f0b4..06610efb0f 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -116,7 +116,11 @@ being compared against."
(env (list
(cons 'ought (compat--ought real-name compat-name))
(cons 'expect (compat--expect real-name compat-name)))))
- (macroexpand-all (macroexp-progn body) (append env
macroexpand-all-environment))))
+ (and (or (not (get real-name 'compat-version))
+ (version<= emacs-version (get real-name 'compat-version)))
+ (macroexpand-all
+ (macroexp-progn body)
+ (append env macroexpand-all-environment)))))