]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix cl-assert with atomp FORM, non-nil SHOW-ARGS
authorNoam Postavsky <npostavs@gmail.com>
Mon, 4 Jul 2016 03:44:14 +0000 (23:44 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 6 Aug 2016 20:16:02 +0000 (16:16 -0400)
* lisp/emacs-lisp/cl-macs.el (cl-assert): Don't require that FORM is a
list when showing its (non-existent) arguments (Bug #18587).

lisp/emacs-lisp/cl-macs.el

index 37244f5c350e1f71648669f7b24044b3bd51154e..9a599391e6c2e423b13dc18b9656351ca0f2a521 100644 (file)
@@ -3028,7 +3028,7 @@ omitted, a default message listing FORM itself is used."
                          (delq nil (mapcar (lambda (x)
                                              (unless (macroexp-const-p x)
                                                x))
-                                           (cdr form))))))
+                                           (cdr-safe form))))))
         `(progn
             (or ,form
                 (cl--assertion-failed