aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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