mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
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)
This commit is contained in:
parent
745847ba8e
commit
7d9e67be13
4 changed files with 44 additions and 27 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue