diff options
| author | Philip Kaludercic <philipk@posteo.net> | 2022-04-04 11:19:55 +0200 |
|---|---|---|
| committer | Philip Kaludercic <philipk@posteo.net> | 2022-04-04 23:04:53 +0200 |
| commit | db5acce343a6ac3f0f79b80f297dd598513bb272 (patch) | |
| tree | efbf6559245f01051f23bc3c9f73fd9c4799ddb4 /compat-macs.el | |
| parent | 8b11638bc5f5994515e21ce459a655bb71121340 (diff) | |
Improve conditional testing
Instead of ignoring the entire compat-deftest block if the
compat-version/-min-version and -max-version properties indicates that
a function shouldn't be tested before or after a specific version.
This restores and improves on the behaviour of before 5514de45.
Diffstat (limited to 'compat-macs.el')
| -rw-r--r-- | compat-macs.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compat-macs.el b/compat-macs.el index 0ab28c4..12c8c62 100644 --- a/compat-macs.el +++ b/compat-macs.el @@ -177,6 +177,8 @@ DEF-FN, INSTALL-FN, CHECK-FN, ATTR and TYPE." `(progn (put ',realname 'compat-type ',type) (put ',realname 'compat-version ,version) + (put ',realname 'compat-min-version ,min-version) + (put ',realname 'compat-max-version ,max-version) (put ',realname 'compat-doc ,(plist-get attr :note)) ,(funcall def-fn realname version) (,@(cond |
