aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Walters2002-06-08 21:42:00 +0000
committerColin Walters2002-06-08 21:42:00 +0000
commit06bc5dbf8e9e729eeedae6cac07c8f29243b9f2e (patch)
tree8e6fe94b4caf18830f628ffcfa4677b0fc5c6da0
parenta8f5766042b9b34c48d9c73bbabe62112394279a (diff)
downloademacs-06bc5dbf8e9e729eeedae6cac07c8f29243b9f2e.tar.gz
emacs-06bc5dbf8e9e729eeedae6cac07c8f29243b9f2e.zip
(copy-list): Moved to subr.el.
-rw-r--r--lisp/emacs-lisp/cl.el9
1 files changed, 0 insertions, 9 deletions
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
514 (push (pop list) res)) 514 (push (pop list) res))
515 (nreverse res))) 515 (nreverse res)))
516 516
517(defun copy-list (list)
518 "Return a copy of a list, which may be a dotted list.
519The elements of the list are not copied, just the list structure itself."
520 (if (consp list)
521 (let ((res nil))
522 (while (consp list) (push (pop list) res))
523 (prog1 (nreverse res) (setcdr res list)))
524 (car list)))
525
526(defun cl-maclisp-member (item list) 517(defun cl-maclisp-member (item list)
527 (while (and list (not (equal item (car list)))) (setq list (cdr list))) 518 (while (and list (not (equal item (car list)))) (setq list (cdr list)))
528 list) 519 list)