# HG changeset patch # User Richard M. Stallman # Date 872721300 0 # Node ID 3d2741d4fabc8311b7da2165db5f2bd5225c6774 # Parent 17db1ee36bbbe498d07785d0caf30e2df11f10d9 (last*): Definition deleted. diff -r 17db1ee36bbb -r 3d2741d4fabc lisp/emacs-lisp/cl.el --- a/lisp/emacs-lisp/cl.el Wed Aug 27 22:34:30 1997 +0000 +++ b/lisp/emacs-lisp/cl.el Wed Aug 27 22:35:00 1997 +0000 @@ -499,16 +499,16 @@ "Return the `cdr' of the `cdr' of the `cdr' of the `cdr' of X." (cdr (cdr (cdr (cdr x))))) -(defun last* (x &optional n) - "Returns the last link in the list LIST. -With optional argument N, returns Nth-to-last link (default 1)." - (if n - (let ((m 0) (p x)) - (while (consp p) (incf m) (pop p)) - (if (<= n 0) p - (if (< n m) (nthcdr (- m n) x) x))) - (while (consp (cdr x)) (pop x)) - x)) +;;(defun last* (x &optional n) +;; "Returns the last link in the list LIST. +;;With optional argument N, returns Nth-to-last link (default 1)." +;; (if n +;; (let ((m 0) (p x)) +;; (while (consp p) (incf m) (pop p)) +;; (if (<= n 0) p +;; (if (< n m) (nthcdr (- m n) x) x))) +;; (while (consp (cdr x)) (pop x)) +;; x)) (defun butlast (x &optional n) "Returns a copy of LIST with the last N elements removed."