branch: externals/compat
commit 076b96b10bea97322e087928f4d258f7c8578ea5
Author: Philip Kaludercic <phil...@posteo.net>
Commit: Philip Kaludercic <phil...@posteo.net>

    Ensure that compatibility conditions are always tested
---
 compat-macs.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compat-macs.el b/compat-macs.el
index f9506df189..a53404b0eb 100644
--- a/compat-macs.el
+++ b/compat-macs.el
@@ -103,7 +103,7 @@ DEF-FN, INSTALL-FN, CHECK-FN, ATTR and TYPE."
                   '(compat--ignore))
                  ((plist-get attr :prefix)
                   '(progn))
-                 ((and version (version<= version emacs-version))
+                 ((and version (version<= version emacs-version) (not cond))
                   '(compat--ignore))
                  (`(when (and ,(if cond cond t)
                               ,(funcall check-fn)))))))
@@ -189,7 +189,7 @@ DEF-FN, INSTALL-FN, CHECK-FN, ATTR and TYPE."
             '(compat--ignore))
            ((plist-get attr :prefix)
             '(progn))
-           ((and version (version<= version emacs-version))
+           ((and version (version<= version emacs-version) (not cond))
             '(compat--ignore))
            (`(when (and ,(if cond cond t)
                         ,(funcall check-fn)))))

Reply via email to