aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorArtur Malabarba2015-11-07 11:25:31 +0000
committerArtur Malabarba2015-11-07 13:55:16 +0000
commitb74c8847e86a9fc2abfe3a80e75cd361ce2d53af (patch)
tree6b87fa907b5b491fdd17ed3476ff5ae62738df39 /lisp
parente21e3b6ba9a33fde2ba951f7b7e38da387186ae5 (diff)
downloademacs-b74c8847e86a9fc2abfe3a80e75cd361ce2d53af.tar.gz
emacs-b74c8847e86a9fc2abfe3a80e75cd361ce2d53af.zip
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix a bug
The defsubst was being created as: (cl-defsubst name (args) ("DOC") ...) * test/automated/cl-lib-tests.el (cl-lib-struct-constructors): Add test
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/cl-macs.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index c42094f0f0c..80f0cd73cee 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -2730,7 +2730,7 @@ non-nil value, that slot cannot be set via `setf'.
2730 slots defaults))) 2730 slots defaults)))
2731 (push `(cl-defsubst ,cname 2731 (push `(cl-defsubst ,cname
2732 (&cl-defs (nil ,@descs) ,@args) 2732 (&cl-defs (nil ,@descs) ,@args)
2733 ,(if (stringp doc) (list doc) 2733 ,(if (stringp doc) doc
2734 (format "Constructor for objects of type `%s'." name)) 2734 (format "Constructor for objects of type `%s'." name))
2735 ,@(if (cl--safe-expr-p `(progn ,@(mapcar #'cl-second descs))) 2735 ,@(if (cl--safe-expr-p `(progn ,@(mapcar #'cl-second descs)))
2736 '((declare (side-effect-free t)))) 2736 '((declare (side-effect-free t))))