diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2023-02-24 15:12:40 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2023-02-24 16:53:32 +0100 |
commit | 4849e74273864219be205d5dc9d74fa0b39394e8 (patch) | |
tree | d13d925cbb6c26230611cbc806ee7148bfe6c66c | |
parent | 1defa5000b1881817c515d7979661fbdc6fc0968 (diff) | |
download | emacs-4849e74273864219be205d5dc9d74fa0b39394e8.tar.gz |
Fix unsafep for aliases to side-effect-free functions
* lisp/emacs-lisp/unsafep.el (unsafep-function):
Follow aliases when reading the `side-effect-free` property.
-rw-r--r-- | lisp/emacs-lisp/unsafep.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/unsafep.el b/lisp/emacs-lisp/unsafep.el index 1d3cde69392..e722cbc52dd 100644 --- 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)))) |