aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-23 18:55:52 +0000
committerRichard M. Stallman1997-08-23 18:55:52 +0000
commitd370591d58e78adbbcb788d0aa0cc9de3fcdbff7 (patch)
treedcdc569ebcb26d68dd9270e0ccabe770a427be5a
parent2a21e93c912d251e68f4c6d18f8185031ef181ba (diff)
downloademacs-d370591d58e78adbbcb788d0aa0cc9de3fcdbff7.tar.gz
emacs-d370591d58e78adbbcb788d0aa0cc9de3fcdbff7.zip
(caar, cadr, cdar, cddr): Definitions moved here and changed into defsubsts.
-rw-r--r--lisp/subr.el16
1 files changed, 16 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 308d400ee88..a93cd3f8b52 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -62,6 +62,22 @@ BODY should be a list of lisp expressions."
62 (cons 'if (cons cond (cons nil body)))) 62 (cons 'if (cons cond (cons nil body))))
63(put 'unless 'lisp-indent-function 1) 63(put 'unless 'lisp-indent-function 1)
64(put 'unless 'edebug-form-spec '(&rest form)) 64(put 'unless 'edebug-form-spec '(&rest form))
65
66(defsubst caar (x)
67 "Return the car of the car of X."
68 (car (car x)))
69
70(defsubst cadr (x)
71 "Return the car of the cdr of X."
72 (car (cdr x)))
73
74(defsubst cdar (x)
75 "Return the cdr of the car of X."
76 (cdr (car x)))
77
78(defsubst cddr (x)
79 "Return the cdr of the cdr of X."
80 (cdr (cdr x)))
65 81
66;;;; Keymap support. 82;;;; Keymap support.
67 83