diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2023-04-12 12:20:12 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2023-04-13 14:26:16 +0200 |
commit | feef1a0592d2f56bfae1718ae6f83f8f66393fb3 (patch) | |
tree | 4bc90ec2996782bb52607e6e16576a97256c44d9 /lisp/subr.el | |
parent | 861cf3a5c9d2081d811dcfc2c5ce5357f3dc44d4 (diff) | |
download | emacs-feef1a0592d2f56bfae1718ae6f83f8f66393fb3.tar.gz |
Update effect declarations for many built-in functions
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns)
(side-effect-and-error-free-fns, pure-fns): Add many functions.
* lisp/subr.el (copy-tree): Declare error-free.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r-- | lisp/subr.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index cbddfa620a8..f90026534e8 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -829,7 +829,7 @@ of course, also replace TO with a slightly larger value If TREE is a cons cell, this recursively copies both its car and its cdr. Contrast to `copy-sequence', which copies only along the cdrs. With second argument VECP, this copies vectors as well as conses." - (declare (side-effect-free t)) + (declare (side-effect-free error-free)) (if (consp tree) (let (result) (while (consp tree) |