diff options
| author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-11-07 11:25:31 +0000 |
|---|---|---|
| committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-11-07 13:55:16 +0000 |
| commit | b74c8847e86a9fc2abfe3a80e75cd361ce2d53af (patch) | |
| tree | 6b87fa907b5b491fdd17ed3476ff5ae62738df39 /lisp/emacs-lisp | |
| parent | e21e3b6ba9a33fde2ba951f7b7e38da387186ae5 (diff) | |
| download | emacs-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.el | 2 |
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)))) |
