]> git.eshelyaron.com Git - emacs.git/commit
Add missing side-effect-free and error-free properties
authorMattias Engdegård <mattiase@acm.org>
Sun, 1 Nov 2020 14:57:12 +0000 (15:57 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sun, 1 Nov 2020 17:22:11 +0000 (18:22 +0100)
commitd85e0df7adaa21e20d44e7bbca62fa91272506bd
tree9a1b488ccb65cb3e1b2d6e2aaac352c924ba245c
parentd8601684934e8c4b72002c7d84036ca48048187f
Add missing side-effect-free and error-free properties

Any function that is pure is also side-effect-free and some are also
error-free.  Right now these have to be declared separately.

* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Add
bool-vector-count-consecutive, bool-vector-count-population,
bool-vector-subsetp, copysign, isnan, lax-plist-get, ldexp, memql,
regexp-opt and string-to-syntax.
(side-effect-and-error-free-fns): Add type-of.
* lisp/subr.el (kbd, string-replace): Declare side-effect-free.
lisp/emacs-lisp/byte-opt.el
lisp/subr.el