]> git.eshelyaron.com Git - emacs.git/commitdiff
Support `cl-defstruct' in autoloads
authorStephen Leake <stephen_leake@stephe-leake.org>
Tue, 10 Sep 2019 10:36:15 +0000 (03:36 -0700)
committerStephen Leake <stephen_leake@stephe-leake.org>
Tue, 10 Sep 2019 10:36:15 +0000 (03:36 -0700)
* lisp/emacs-lisp/autoload.el (make-autoload): Add `cl-defstruct' to
"complex cases" list.

* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Add :autoload-end to
limit what is declared in autoloads.el for a defstruct.

lisp/emacs-lisp/autoload.el
lisp/emacs-lisp/cl-macs.el

index 541b22e3eea80fd12ecc1f283b4eacc5d0edc7a3..a2dbd402c52e4354ec09e700ea1b55dad6173934 100644 (file)
@@ -165,7 +165,7 @@ expression, in which case we want to handle forms differently."
                        define-globalized-minor-mode defun defmacro
                       easy-mmode-define-minor-mode define-minor-mode
                        define-inline cl-defun cl-defmacro cl-defgeneric
-                       pcase-defmacro))
+                       cl-defstruct pcase-defmacro))
            (macrop car)
           (setq expand (let ((load-file-name file)) (macroexpand form)))
           (memq (car expand) '(progn prog1 defalias)))
index 1ae726662443f9546892082fbc4a0f917b78dc63..05a4192dd9b507e1f1c6ad5d26bc3eac173ca4c3 100644 (file)
@@ -3006,6 +3006,7 @@ Supported keywords for slots are:
     `(progn
        (defvar ,tag-symbol)
        ,@(nreverse forms)
+       :autoload-end
        ;; Call cl-struct-define during compilation as well, so that
        ;; a subsequent cl-defstruct in the same file can correctly include this
        ;; struct as a parent.