diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2025-02-15 00:40:52 +0100 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2025-02-15 00:40:52 +0100 |
commit | dc86f59e926f618d4e3568a332b42ea0647a08ba (patch) | |
tree | ce125d5cb7e7a6fa95bc09c9c843601dc3b549a8 /lisp/emacs-lisp/cl-lib.el | |
parent | f05ce9e6bbe7202060580c122e033f5e4ac98e90 (diff) | |
download | emacs-dc86f59e926f618d4e3568a332b42ea0647a08ba.tar.gz emacs-dc86f59e926f618d4e3568a332b42ea0647a08ba.tar.bz2 emacs-dc86f59e926f618d4e3568a332b42ea0647a08ba.zip |
Prefer `(defsubst A ...)` to `(cl-proclaim (inline A))`
* lisp/emacs-lisp/cl-macs.el: Remove cl-proclaim...
* lisp/emacs-lisp/cl-extra.el (cl-map, cl-notany, cl-notevery)
(cl-revappend, cl-nreconc):
* lisp/emacs-lisp/cl-lib.el (cl-acons): ...and use defsubst
instead. (Bug#76294)
Diffstat (limited to 'lisp/emacs-lisp/cl-lib.el')
-rw-r--r-- | lisp/emacs-lisp/cl-lib.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/cl-lib.el b/lisp/emacs-lisp/cl-lib.el index 883a13e3244..dba01b28325 100644 --- a/lisp/emacs-lisp/cl-lib.el +++ b/lisp/emacs-lisp/cl-lib.el @@ -535,7 +535,7 @@ Return a copy of TREE with all elements `eql' to OLD replaced by NEW. cl-tree (cons a d)))) (t cl-tree))) -(defun cl-acons (key value alist) +(defsubst cl-acons (key value alist) "Add KEY and VALUE to ALIST. Return a new list with (cons KEY VALUE) as car and ALIST as cdr." (declare (side-effect-free error-free)) |