[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)
- [elpa] externals/compat updated (f1be1fbdeb -> 503b13f1b1), ELPA Syncer, 2022/02/05
- [elpa] externals/compat f57791877f 4/8: Use nth/nthcdr instead of cad+r/cdd+r if possible, ELPA Syncer, 2022/02/05
- [elpa] externals/compat 503b13f1b1 8/8: Add compat-help as an infrastructure to manage relevant notes, ELPA Syncer, 2022/02/05
- [elpa] externals/compat 0039912d8e 3/8: Remove unknown declare properties for Emacs 24 and prior,
ELPA Syncer <=
- [elpa] externals/compat c7578e29f2 1/8: Use with-eval-after-load for updating default values, ELPA Syncer, 2022/02/05
- [elpa] externals/compat 711d678361 6/8: Fix eval-after-load call for delayed compatibility code, ELPA Syncer, 2022/02/05
- [elpa] externals/compat 839ed32445 2/8: Drop :max-version for alist-get in compat-25.1, ELPA Syncer, 2022/02/05
- [elpa] externals/compat 0125f90e64 7/8: Declare json-parse-string in compat-27.1, ELPA Syncer, 2022/02/05
- [elpa] externals/compat 1a53971919 5/8: Abbreviate doc-string for lookup-key advice, ELPA Syncer, 2022/02/05