mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 13:57:36 +00:00
(caar, cadr, cdar, cddr): Definitions moved here and changed into defsubsts.
This commit is contained in:
parent
2a21e93c91
commit
d370591d58
1 changed files with 16 additions and 0 deletions
16
lisp/subr.el
16
lisp/subr.el
|
|
@ -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)))
|
||||
|
||||
;;;; Keymap support.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue