(caar, cadr, cdar, cddr): Definitions moved here and changed into defsubsts.
authorRichard M. Stallman <rms@gnu.org>
Sat, 23 Aug 1997 18:55:52 +0000 (18:55 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 23 Aug 1997 18:55:52 +0000 (18:55 +0000)
lisp/subr.el

index 308d400..a93cd3f 100644 (file)
@@ -62,6 +62,22 @@ BODY should be a list of lisp expressions."
   (cons 'if (cons cond (cons nil body))))
 (put 'unless 'lisp-indent-function 1)
 (put 'unless 'edebug-form-spec '(&rest form))
+
+(defsubst caar (x)
+  "Return the car of the car of X."
+  (car (car x)))
+
+(defsubst cadr (x)
+  "Return the car of the cdr of X."
+  (car (cdr x)))
+
+(defsubst cdar (x)
+  "Return the cdr of the car of X."
+  (cdr (car x)))
+
+(defsubst cddr (x)
+  "Return the cdr of the cdr of X."
+  (cdr (cdr x)))
 \f
 ;;;; Keymap support.