From: Colin Walters Date: Sat, 8 Jun 2002 21:42:00 +0000 (+0000) Subject: (copy-list): Moved to subr.el. X-Git-Tag: ttn-vms-21-2-B4~14720 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=06bc5dbf8e9e729eeedae6cac07c8f29243b9f2e;p=emacs.git (copy-list): Moved to subr.el. --- diff --git a/lisp/emacs-lisp/cl.el b/lisp/emacs-lisp/cl.el index c5d3ef0832e..def4d24188c 100644 --- a/lisp/emacs-lisp/cl.el +++ b/lisp/emacs-lisp/cl.el @@ -514,15 +514,6 @@ Thus, `(list* A B C D)' is equivalent to `(nconc (list A B C) D)', or to (push (pop list) res)) (nreverse res))) -(defun copy-list (list) - "Return a copy of a list, which may be a dotted list. -The elements of the list are not copied, just the list structure itself." - (if (consp list) - (let ((res nil)) - (while (consp list) (push (pop list) res)) - (prog1 (nreverse res) (setcdr res list))) - (car list))) - (defun cl-maclisp-member (item list) (while (and list (not (equal item (car list)))) (setq list (cdr list))) list)