summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/cl-macs.el
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2025-02-13 04:24:05 +0100
committerStefan Kangas <stefankangas@gmail.com>2025-02-13 17:50:40 +0100
commit7d9e67be13f72b7c7c8815f651c8fa5f74a79c54 (patch)
tree30e6f718c85fda0f8e82e1659af899b2c6cd5471 /lisp/emacs-lisp/cl-macs.el
parent745847ba8eca27e981a50ad91b628bbce35bb0f3 (diff)
downloademacs-7d9e67be13f72b7c7c8815f651c8fa5f74a79c54.tar.gz
emacs-7d9e67be13f72b7c7c8815f651c8fa5f74a79c54.tar.bz2
emacs-7d9e67be13f72b7c7c8815f651c8fa5f74a79c54.zip
Inline side-effect-free declarations in cl-lib.el
* lisp/emacs-lisp/cl-macs.el: Move side-effect-free declarations from here... * lisp/emacs-lisp/cl-extra.el (cl-gcd, cl-lcm, cl-isqrt, cl-floor) (cl-ceiling, cl-truncate, cl-round, cl-mod, cl-rem, cl-signum) (cl-subseq, cl-list-length, cl-get, cl-getf): * lisp/emacs-lisp/cl-lib.el (cl-plusp, cl-minusp, cl-oddp, cl-evenp) (cl-fifth, cl-sixth, cl-seventh, cl-eighth, cl-ninth, cl-tenth) (cl-ldiff, cl-pairlis): * lisp/emacs-lisp/cl-seq.el (cl-endp): ...to have them inline here. * lisp/emacs-lisp/cl-macs.el: Move side-effect-and-error-free declarations from here... * lisp/emacs-lisp/cl-extra.el (cl-equalp, cl-random-state-p): * lisp/emacs-lisp/cl-lib.el (cl-list*, cl-acons): ...to have them inline here. (Bug#76247)
Diffstat (limited to 'lisp/emacs-lisp/cl-macs.el')
-rw-r--r--lisp/emacs-lisp/cl-macs.el14
1 files changed, 0 insertions, 14 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 9b76c8c80a0..1da218934ab 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -3729,20 +3729,6 @@ macro that returns its `&whole' argument."
(cl-proclaim '(inline cl-acons cl-map cl-notany cl-notevery cl-revappend
cl-nreconc))
-;;; Things that are side-effect-free.
-(mapc (lambda (x) (function-put x 'side-effect-free t))
- '(cl-first cl-second cl-third cl-fourth
- cl-fifth cl-sixth cl-seventh
- cl-eighth cl-ninth cl-tenth
- cl-rest cl-endp cl-plusp cl-minusp
- cl-oddp cl-evenp cl-signum cl-ldiff cl-pairlis cl-gcd
- cl-lcm cl-isqrt cl-floor cl-ceiling cl-truncate cl-round cl-mod cl-rem
- cl-subseq cl-list-length cl-get cl-getf))
-
-;;; Things that are side-effect-and-error-free.
-(mapc (lambda (x) (function-put x 'side-effect-free 'error-free))
- '(cl-list* cl-acons cl-equalp
- cl-random-state-p copy-tree))
;;; Things whose return value should probably be used.
(mapc (lambda (x) (function-put x 'important-return-value t))