]> git.eshelyaron.com Git - emacs.git/commit
Follow function aliases for `side-effect-free` and `pure` properties
authorMattias Engdegård <mattiase@acm.org>
Thu, 23 Feb 2023 13:04:55 +0000 (14:04 +0100)
committerMattias Engdegård <mattiase@acm.org>
Fri, 24 Feb 2023 15:53:32 +0000 (16:53 +0100)
commit1defa5000b1881817c515d7979661fbdc6fc0968
treeb1c6def7d5bb617203540a501a43413a89d8aa99
parent1bed13111be2954e418f3cf43f30944ea5b82055
Follow function aliases for `side-effect-free` and `pure` properties

This way we don't need to set these properties on aliases at all;
it was always easy to forget doing so.

* lisp/emacs-lisp/byte-opt.el (byte-opt--fget): New function.
(byte-optimize-form-code-walker, byte-optimize-form): Use it.
(side-effect-free-fns, side-effect-and-error-free-fns, pure-fns):
Remove aliases from lists, leaving only built-in functions.
lisp/emacs-lisp/byte-opt.el