summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2000-08-06 09:17:27 +0000
committerGerd Moellmann <gerd@gnu.org>2000-08-06 09:17:27 +0000
commitdc79c3ea3c2fbcaf80b70e33517c573451d671bb (patch)
tree44dfbbfb83c68e63461fd23bb6fae5ba9e1af2e8 /lisp/emacs-lisp
parent6968a481f5e1c375b403263e233e9292196e1b79 (diff)
downloademacs-dc79c3ea3c2fbcaf80b70e33517c573451d671bb.tar.gz
emacs-dc79c3ea3c2fbcaf80b70e33517c573451d671bb.tar.bz2
emacs-dc79c3ea3c2fbcaf80b70e33517c573451d671bb.zip
(third...tenth): Undo change of 2000-08-05.
(second): Make it an alias for `cadr'.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/cl.el21
1 files changed, 9 insertions, 12 deletions
diff --git a/lisp/emacs-lisp/cl.el b/lisp/emacs-lisp/cl.el
index 2d91043077e..29e7f6d2ac5 100644
--- a/lisp/emacs-lisp/cl.el
+++ b/lisp/emacs-lisp/cl.el
@@ -329,42 +329,39 @@ SEQ, this is like `mapcar'. With several, it is like the Common Lisp
;;; List functions.
(defalias 'first 'car)
+(defalias 'second 'cadr)
(defalias 'rest 'cdr)
(defalias 'endp 'null)
-(defmacro second (x)
- "Return the second element of the list LIST."
- `(car (cdr ,x)))
-
-(defmacro third (x)
+(defun third (x)
"Return the third element of the list LIST."
`(car (cdr (cdr ,x))))
-(defmacro fourth (x)
+(defun fourth (x)
"Return the fourth element of the list LIST."
`(nth 3 ,x))
-(defmacro fifth (x)
+(defun fifth (x)
"Return the fifth element of the list LIST."
`(nth 4 ,x))
-(defmacro sixth (x)
+(defun sixth (x)
"Return the sixth element of the list LIST."
`(nth 5 ,x))
-(defmacro seventh (x)
+(defun seventh (x)
"Return the seventh element of the list LIST."
`(nth 6 ,x))
-(defmacro eighth (x)
+(defun eighth (x)
"Return the eighth element of the list LIST."
`(nth 7 ,x))
-(defmacro ninth (x)
+(defun ninth (x)
"Return the ninth element of the list LIST."
`(nth 8 ,x))
-(defmacro tenth (x)
+(defun tenth (x)
"Return the tenth element of the list LIST."
`(nth 9 ,x))