branch: externals/compat commit 5936773a5d42fa61fd66fce875669c7953c0a344 Author: Philip Kaludercic <phil...@posteo.net> Commit: Philip Kaludercic <phil...@posteo.net>
Fix installation check --- compat-macs.el | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/compat-macs.el b/compat-macs.el index 2199145..39a04ee 100644 --- a/compat-macs.el +++ b/compat-macs.el @@ -84,14 +84,14 @@ attributes are handled, all others are ignored: (,@(cond (force '(progn)) - ((or (or (not version) - (version< emacs-version version)) - (or (not min-version) - (version<= min-version emacs-version)) - (or (not max-version) - (version<= emacs-version max-version))) - '(compat--ignore)) - (`(when ,(funcall check-fn realname)))) + ((and (or (not version) + (version< emacs-version version)) + (or (not min-version) + (version<= min-version emacs-version)) + (or (not max-version) + (version<= emacs-version max-version))) + `(unless ,(funcall check-fn realname))) + ('(compat--ignore))) ,(funcall install-fn realname))))) (if (and feature (not compat--disable-defer)) `(eval-after-load ',feature (lambda () ,body))