summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/cl-lib.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2019-02-18 13:16:57 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2019-02-18 13:16:57 -0500
commite6f8ddbb3b8f99c73b2be66bb1e691d4757c3b12 (patch)
treef7eed4001cb7ccb23d9673601c4cb155727d0dd3 /lisp/emacs-lisp/cl-lib.el
parenteccfdaff5b52e1fadbaf2fbbb6c1366a7addf377 (diff)
downloademacs-e6f8ddbb3b8f99c73b2be66bb1e691d4757c3b12.tar.gz
emacs-e6f8ddbb3b8f99c73b2be66bb1e691d4757c3b12.tar.bz2
emacs-e6f8ddbb3b8f99c73b2be66bb1e691d4757c3b12.zip
* lisp/emacs-lisp/cl-lib.el (cl-endp): Move to cl-seq.el
Use 'cl-check-type'.
Diffstat (limited to 'lisp/emacs-lisp/cl-lib.el')
-rw-r--r--lisp/emacs-lisp/cl-lib.el7
1 files changed, 0 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/cl-lib.el b/lisp/emacs-lisp/cl-lib.el
index 60c52c26ca3..3a9280fae62 100644
--- a/lisp/emacs-lisp/cl-lib.el
+++ b/lisp/emacs-lisp/cl-lib.el
@@ -365,13 +365,6 @@ SEQ, this is like `mapcar'. With several, it is like the Common Lisp
(cl--defalias 'cl-second 'cadr)
(cl--defalias 'cl-rest 'cdr)
-(defun cl-endp (x)
- "Return true if X is the empty list; false if it is a cons.
-Signal an error if X is not a list."
- (if (listp x)
- (null x)
- (signal 'wrong-type-argument (list 'listp x))))
-
(cl--defalias 'cl-third 'cl-caddr "Return the third element of the list X.")
(cl--defalias 'cl-fourth 'cl-cadddr "Return the fourth element of the list X.")