summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/cl-lib.el
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2025-02-15 00:40:52 +0100
committerStefan Kangas <stefankangas@gmail.com>2025-02-15 00:40:52 +0100
commitdc86f59e926f618d4e3568a332b42ea0647a08ba (patch)
treece125d5cb7e7a6fa95bc09c9c843601dc3b549a8 /lisp/emacs-lisp/cl-lib.el
parentf05ce9e6bbe7202060580c122e033f5e4ac98e90 (diff)
downloademacs-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.el2
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))