]> git.eshelyaron.com Git - emacs.git/commit
Adjust some `pure` and `side-effect-free` function declarations
authorMattias Engdegård <mattiase@acm.org>
Sun, 26 Feb 2023 15:56:24 +0000 (16:56 +0100)
committerMattias Engdegård <mattiase@acm.org>
Mon, 27 Feb 2023 13:34:22 +0000 (14:34 +0100)
commit1767d18c91a3c823d6ab6d69b2666fc5bc2f7d22
tree93516d1da4a0caba4eee35232fbe792abca2ce42
parent443c249d85003639512d8d3b6ace184a9ff53bc2
Adjust some `pure` and `side-effect-free` function declarations

* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns):
Add `format-message` and `substring-no-properties`.
* lisp/subr.el (number-sequence, copy-tree, looking-at-p)
(string-match-p, string-trim-right, string-lines):
Declare side-effect-free.
(syntax-class, version-list-<, version-list-=, version-list-<=)
(version-list-not-zero): Declare pure and side-effect-free.
(ensure-list): Declare side-effect-free and error-free.
(string-equal-ignore-case): Remove `pure` declaration.
We may want it to be pure but right now it's not.
lisp/emacs-lisp/byte-opt.el
lisp/subr.el