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

    Fix handling of unknown declare properties before Emacs 25
---
 compat-macs.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compat-macs.el b/compat-macs.el
index 6a9a7b7fb1..1b762d8428 100644
--- a/compat-macs.el
+++ b/compat-macs.el
@@ -202,7 +202,7 @@ attributes (see `compat-generate-common')."
     ;; It might be possible to set these properties otherwise.  That
     ;; should be looked into and implemented if it is the case.
     (when (and (listp (car-safe body)) (eq (caar body) 'declare))
-      (when (version<= "25" emacs-version)
+      (when (version<= emacs-version "25")
         (delq (assq 'side-effect-free (car body)) (car body))
         (delq (assq 'pure (car body)) (car body))))
     ;; Check if we want an explicitly prefixed function

Reply via email to