[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r117127: * emacs-lisp/cl-lib.el (cl-endp): Conform t
From: |
Leo Liu |
Subject: |
[Emacs-diffs] trunk r117127: * emacs-lisp/cl-lib.el (cl-endp): Conform to CL's semantics. |
Date: |
Mon, 19 May 2014 16:15:10 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 117127
revision-id: address@hidden
parent: address@hidden
committer: Leo Liu <address@hidden>
branch nick: trunk
timestamp: Tue 2014-05-20 00:08:40 +0800
message:
* emacs-lisp/cl-lib.el (cl-endp): Conform to CL's semantics.
modified:
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/emacs-lisp/cl-lib.el cl.el-20091113204419-o5vbwnq5f7feedwu-614
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2014-05-18 22:57:37 +0000
+++ b/lisp/ChangeLog 2014-05-19 16:08:40 +0000
@@ -1,3 +1,7 @@
+2014-05-19 Leo Liu <address@hidden>
+
+ * emacs-lisp/cl-lib.el (cl-endp): Conform to CL's semantics.
+
2014-05-18 Glenn Morris <address@hidden>
* loadup.el:
=== modified file 'lisp/emacs-lisp/cl-lib.el'
--- a/lisp/emacs-lisp/cl-lib.el 2014-04-22 03:18:15 +0000
+++ b/lisp/emacs-lisp/cl-lib.el 2014-05-19 16:08:40 +0000
@@ -358,7 +358,13 @@
(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.")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r117127: * emacs-lisp/cl-lib.el (cl-endp): Conform to CL's semantics.,
Leo Liu <=