aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emacs-lisp/cl-lib.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp/cl-lib.el')
-rw-r--r--lisp/emacs-lisp/cl-lib.el143
1 files changed, 24 insertions, 119 deletions
diff --git a/lisp/emacs-lisp/cl-lib.el b/lisp/emacs-lisp/cl-lib.el
index b1db07fe165..5aa8f1bf652 100644
--- a/lisp/emacs-lisp/cl-lib.el
+++ b/lisp/emacs-lisp/cl-lib.el
@@ -413,125 +413,30 @@ Signal an error if X is not a list."
413 (declare (gv-setter (lambda (store) `(setcar (nthcdr 9 ,x) ,store)))) 413 (declare (gv-setter (lambda (store) `(setcar (nthcdr 9 ,x) ,store))))
414 (nth 9 x)) 414 (nth 9 x))
415 415
416(defun cl-caaar (x) 416(defalias 'cl-caaar 'caaar)
417 "Return the `car' of the `car' of the `car' of X." 417(defalias 'cl-caadr 'caadr)
418 (declare (compiler-macro internal--compiler-macro-cXXr)) 418(defalias 'cl-cadar 'cadar)
419 (car (car (car x)))) 419(defalias 'cl-caddr 'caddr)
420 420(defalias 'cl-cdaar 'cdaar)
421(defun cl-caadr (x) 421(defalias 'cl-cdadr 'cdadr)
422 "Return the `car' of the `car' of the `cdr' of X." 422(defalias 'cl-cddar 'cddar)
423 (declare (compiler-macro internal--compiler-macro-cXXr)) 423(defalias 'cl-cdddr 'cdddr)
424 (car (car (cdr x)))) 424(defalias 'cl-caaaar 'caaaar)
425 425(defalias 'cl-caaadr 'caaadr)
426(defun cl-cadar (x) 426(defalias 'cl-caadar 'caadar)
427 "Return the `car' of the `cdr' of the `car' of X." 427(defalias 'cl-caaddr 'caaddr)
428 (declare (compiler-macro internal--compiler-macro-cXXr)) 428(defalias 'cl-cadaar 'cadaar)
429 (car (cdr (car x)))) 429(defalias 'cl-cadadr 'cadadr)
430 430(defalias 'cl-caddar 'caddar)
431(defun cl-caddr (x) 431(defalias 'cl-cadddr 'cadddr)
432 "Return the `car' of the `cdr' of the `cdr' of X." 432(defalias 'cl-cdaaar 'cdaaar)
433 (declare (compiler-macro internal--compiler-macro-cXXr)) 433(defalias 'cl-cdaadr 'cdaadr)
434 (car (cdr (cdr x)))) 434(defalias 'cl-cdadar 'cdadar)
435 435(defalias 'cl-cdaddr 'cdaddr)
436(defun cl-cdaar (x) 436(defalias 'cl-cddaar 'cddaar)
437 "Return the `cdr' of the `car' of the `car' of X." 437(defalias 'cl-cddadr 'cddadr)
438 (declare (compiler-macro internal--compiler-macro-cXXr)) 438(defalias 'cl-cdddar 'cdddar)
439 (cdr (car (car x)))) 439(defalias 'cl-cddddr 'cddddr)
440
441(defun cl-cdadr (x)
442 "Return the `cdr' of the `car' of the `cdr' of X."
443 (declare (compiler-macro internal--compiler-macro-cXXr))
444 (cdr (car (cdr x))))
445
446(defun cl-cddar (x)
447 "Return the `cdr' of the `cdr' of the `car' of X."
448 (declare (compiler-macro internal--compiler-macro-cXXr))
449 (cdr (cdr (car x))))
450
451(defun cl-cdddr (x)
452 "Return the `cdr' of the `cdr' of the `cdr' of X."
453 (declare (compiler-macro internal--compiler-macro-cXXr))
454 (cdr (cdr (cdr x))))
455
456(defun cl-caaaar (x)
457 "Return the `car' of the `car' of the `car' of the `car' of X."
458 (declare (compiler-macro internal--compiler-macro-cXXr))
459 (car (car (car (car x)))))
460
461(defun cl-caaadr (x)
462 "Return the `car' of the `car' of the `car' of the `cdr' of X."
463 (declare (compiler-macro internal--compiler-macro-cXXr))
464 (car (car (car (cdr x)))))
465
466(defun cl-caadar (x)
467 "Return the `car' of the `car' of the `cdr' of the `car' of X."
468 (declare (compiler-macro internal--compiler-macro-cXXr))
469 (car (car (cdr (car x)))))
470
471(defun cl-caaddr (x)
472 "Return the `car' of the `car' of the `cdr' of the `cdr' of X."
473 (declare (compiler-macro internal--compiler-macro-cXXr))
474 (car (car (cdr (cdr x)))))
475
476(defun cl-cadaar (x)
477 "Return the `car' of the `cdr' of the `car' of the `car' of X."
478 (declare (compiler-macro internal--compiler-macro-cXXr))
479 (car (cdr (car (car x)))))
480
481(defun cl-cadadr (x)
482 "Return the `car' of the `cdr' of the `car' of the `cdr' of X."
483 (declare (compiler-macro internal--compiler-macro-cXXr))
484 (car (cdr (car (cdr x)))))
485
486(defun cl-caddar (x)
487 "Return the `car' of the `cdr' of the `cdr' of the `car' of X."
488 (declare (compiler-macro internal--compiler-macro-cXXr))
489 (car (cdr (cdr (car x)))))
490
491(defun cl-cadddr (x)
492 "Return the `car' of the `cdr' of the `cdr' of the `cdr' of X."
493 (declare (compiler-macro internal--compiler-macro-cXXr))
494 (car (cdr (cdr (cdr x)))))
495
496(defun cl-cdaaar (x)
497 "Return the `cdr' of the `car' of the `car' of the `car' of X."
498 (declare (compiler-macro internal--compiler-macro-cXXr))
499 (cdr (car (car (car x)))))
500
501(defun cl-cdaadr (x)
502 "Return the `cdr' of the `car' of the `car' of the `cdr' of X."
503 (declare (compiler-macro internal--compiler-macro-cXXr))
504 (cdr (car (car (cdr x)))))
505
506(defun cl-cdadar (x)
507 "Return the `cdr' of the `car' of the `cdr' of the `car' of X."
508 (declare (compiler-macro internal--compiler-macro-cXXr))
509 (cdr (car (cdr (car x)))))
510
511(defun cl-cdaddr (x)
512 "Return the `cdr' of the `car' of the `cdr' of the `cdr' of X."
513 (declare (compiler-macro internal--compiler-macro-cXXr))
514 (cdr (car (cdr (cdr x)))))
515
516(defun cl-cddaar (x)
517 "Return the `cdr' of the `cdr' of the `car' of the `car' of X."
518 (declare (compiler-macro internal--compiler-macro-cXXr))
519 (cdr (cdr (car (car x)))))
520
521(defun cl-cddadr (x)
522 "Return the `cdr' of the `cdr' of the `car' of the `cdr' of X."
523 (declare (compiler-macro internal--compiler-macro-cXXr))
524 (cdr (cdr (car (cdr x)))))
525
526(defun cl-cdddar (x)
527 "Return the `cdr' of the `cdr' of the `cdr' of the `car' of X."
528 (declare (compiler-macro internal--compiler-macro-cXXr))
529 (cdr (cdr (cdr (car x)))))
530
531(defun cl-cddddr (x)
532 "Return the `cdr' of the `cdr' of the `cdr' of the `cdr' of X."
533 (declare (compiler-macro internal--compiler-macro-cXXr))
534 (cdr (cdr (cdr (cdr x)))))
535 440
536;;(defun last* (x &optional n) 441;;(defun last* (x &optional n)
537;; "Returns the last link in the list LIST. 442;; "Returns the last link in the list LIST.