projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1defa50
)
Fix unsafep for aliases to side-effect-free functions
author
Mattias Engdegård
<mattiase@acm.org>
Fri, 24 Feb 2023 14:12:40 +0000
(15:12 +0100)
committer
Mattias Engdegård
<mattiase@acm.org>
Fri, 24 Feb 2023 15:53:32 +0000
(16:53 +0100)
* lisp/emacs-lisp/unsafep.el (unsafep-function):
Follow aliases when reading the `side-effect-free` property.
lisp/emacs-lisp/unsafep.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/unsafep.el
b/lisp/emacs-lisp/unsafep.el
index 1d3cde693924a1896a5d2544a510c4a912f508ea..e722cbc52dd5833329e64c115b953d179a39b543 100644
(file)
--- a/
lisp/emacs-lisp/unsafep.el
+++ b/
lisp/emacs-lisp/unsafep.el
@@
-237,7
+237,7
@@
Otherwise result is a reason code."
((eq (car-safe fun) 'lambda)
(unsafep fun unsafep-vars))
((not (and (symbolp fun)
- (or (get fun 'side-effect-free)
+ (or (
function-
get fun 'side-effect-free)
(eq (get fun 'safe-function) t)
(eq safe-functions t)
(memq fun safe-functions))))