]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix unsafep for aliases to side-effect-free functions
authorMattias Engdegård <mattiase@acm.org>
Fri, 24 Feb 2023 14:12:40 +0000 (15:12 +0100)
committerMattias 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

index 1d3cde693924a1896a5d2544a510c4a912f508ea..e722cbc52dd5833329e64c115b953d179a39b543 100644 (file)
@@ -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))))