Commit 427de535 authored by Leo Liu's avatar Leo Liu
Browse files

* emacs-lisp/cl-lib.el (cl-endp): Conform to CL's semantics.

parent 8bb59716
2014-05-19 Leo Liu <sdl.web@gmail.com>
* emacs-lisp/cl-lib.el (cl-endp): Conform to CL's semantics.
2014-05-18 Glenn Morris <rgm@gnu.org>
 
* loadup.el:
......
......@@ -358,7 +358,13 @@ SEQ, this is like `mapcar'. With several, it is like the Common Lisp
(cl--defalias 'cl-first 'car)
(cl--defalias 'cl-second 'cadr)
(cl--defalias 'cl-rest 'cdr)
(cl--defalias 'cl-endp 'null)
(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 'list x '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.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment