Commit 4ded1ddb authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(cl-set-nthcdr): Make it a defsubst so that

(setf (nthcdr ..) ..) doesn't require CL at runtime.
parent 6dc30f44
2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/cl.el (cl-set-nthcdr): Make it a defsubst so that
(setf (nthcdr ..) ..) doesn't require CL at runtime.
2008-05-11 Carsten Dominik <dominik@science.uva.nl>
 
* org/org.el (org-modules): Repair problems with loading
......
......@@ -166,7 +166,7 @@ an element already on the list.
(defun cl-set-elt (seq n val)
(if (listp seq) (setcar (nthcdr n seq) val) (aset seq n val)))
(defun cl-set-nthcdr (n list x)
(defsubst cl-set-nthcdr (n list x)
(if (<= n 0) x (setcdr (nthcdr (1- n) list) x) list))
(defun cl-set-buffer-substring (start end val)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment