emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/compat 0039912d8e 3/8: Remove unknown declare propertie


From: ELPA Syncer
Subject: [elpa] externals/compat 0039912d8e 3/8: Remove unknown declare properties for Emacs 24 and prior
Date: Sat, 5 Feb 2022 11:57:23 -0500 (EST)

branch: externals/compat
commit 0039912d8ea1cd3e880421876664ddd491fb69be
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Remove unknown declare properties for Emacs 24 and prior
---
 compat-macs.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/compat-macs.el b/compat-macs.el
index b2e8612102..f6819fc704 100644
--- a/compat-macs.el
+++ b/compat-macs.el
@@ -116,6 +116,12 @@ attributes (see `compat-generate-common')."
   (let ((body rest))
     (while (keywordp (car body))
       (setq body (cddr body)))
+    ;; 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)
+        (delq (assq 'side-effect-free (car body)) (car body))
+        (delq (assq 'pure (car body)) (car body))))
     (compat-generate-common
      name
      (lambda (realname version)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]