diff options
| author | Richard M. Stallman | 1997-08-27 22:35:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-08-27 22:35:00 +0000 |
| commit | f9efebcae0faaa4f28b494f7f31a6e3f150b67d6 (patch) | |
| tree | 05c8379e8fd0b34c1a2e8c379a070c36c34a9357 | |
| parent | 369fba5fb7725e65fd426032397fb854614a3ae9 (diff) | |
| download | emacs-f9efebcae0faaa4f28b494f7f31a6e3f150b67d6.tar.gz emacs-f9efebcae0faaa4f28b494f7f31a6e3f150b67d6.zip | |
(last*): Definition deleted.
| -rw-r--r-- | lisp/emacs-lisp/cl.el | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/emacs-lisp/cl.el b/lisp/emacs-lisp/cl.el index 80db4d9555d..fbfe8808e28 100644 --- a/lisp/emacs-lisp/cl.el +++ b/lisp/emacs-lisp/cl.el | |||
| @@ -499,16 +499,16 @@ SEQ, this is like `mapcar'. With several, it is like the Common Lisp | |||
| 499 | "Return the `cdr' of the `cdr' of the `cdr' of the `cdr' of X." | 499 | "Return the `cdr' of the `cdr' of the `cdr' of the `cdr' of X." |
| 500 | (cdr (cdr (cdr (cdr x))))) | 500 | (cdr (cdr (cdr (cdr x))))) |
| 501 | 501 | ||
| 502 | (defun last* (x &optional n) | 502 | ;;(defun last* (x &optional n) |
| 503 | "Returns the last link in the list LIST. | 503 | ;; "Returns the last link in the list LIST. |
| 504 | With optional argument N, returns Nth-to-last link (default 1)." | 504 | ;;With optional argument N, returns Nth-to-last link (default 1)." |
| 505 | (if n | 505 | ;; (if n |
| 506 | (let ((m 0) (p x)) | 506 | ;; (let ((m 0) (p x)) |
| 507 | (while (consp p) (incf m) (pop p)) | 507 | ;; (while (consp p) (incf m) (pop p)) |
| 508 | (if (<= n 0) p | 508 | ;; (if (<= n 0) p |
| 509 | (if (< n m) (nthcdr (- m n) x) x))) | 509 | ;; (if (< n m) (nthcdr (- m n) x) x))) |
| 510 | (while (consp (cdr x)) (pop x)) | 510 | ;; (while (consp (cdr x)) (pop x)) |
| 511 | x)) | 511 | ;; x)) |
| 512 | 512 | ||
| 513 | (defun butlast (x &optional n) | 513 | (defun butlast (x &optional n) |
| 514 | "Returns a copy of LIST with the last N elements removed." | 514 | "Returns a copy of LIST with the last N elements removed." |