summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-11-07 11:25:31 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-11-07 13:55:16 +0000
commitb74c8847e86a9fc2abfe3a80e75cd361ce2d53af (patch)
tree6b87fa907b5b491fdd17ed3476ff5ae62738df39 /lisp/emacs-lisp
parente21e3b6ba9a33fde2ba951f7b7e38da387186ae5 (diff)
downloademacs-b74c8847e86a9fc2abfe3a80e75cd361ce2d53af.tar.gz
* 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/emacs-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'.
slots defaults)))
(push `(cl-defsubst ,cname
(&cl-defs (nil ,@descs) ,@args)
- ,(if (stringp doc) (list doc)
+ ,(if (stringp doc) doc
(format "Constructor for objects of type `%s'." name))
,@(if (cl--safe-expr-p `(progn ,@(mapcar #'cl-second descs)))
'((declare (side-effect-free t))))