[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoload cl-defstruct constructor?
From: |
Stefan Monnier |
Subject: |
Re: autoload cl-defstruct constructor? |
Date: |
Sat, 07 Sep 2019 10:29:12 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> Hmm. To build autoloads.el for ada-mode in my development tree, I run:
>
> emacs -Q -batch --eval "(progn (require 'autoload)(require 'cl-lib)(setq
> generated-autoload-file (expand-file-name
> \"../autoloads.el\"))(update-directory-autoloads \"../\"))"
>
> I just added the (require 'cl-lib), but I still get the same result for
> a cl-defstruct:
Hmm... indeed it looks like you also need the patch below.
> We'll need to ensure package.el does the same when it generates
> autoloads. Or is that done on the elpa server?
Indeed. The autoloads are built when *installing* a package, so they're
built by the user's Emacs, which may be "old".
Stefan
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index 541b22e3ee..8ec5150cca 100644
--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -165,7 +165,7 @@ make-autoload
define-globalized-minor-mode defun defmacro
easy-mmode-define-minor-mode define-minor-mode
define-inline cl-defun cl-defmacro cl-defgeneric
- pcase-defmacro))
+ pcase-defmacro cl-defstruct))
(macrop car)
(setq expand (let ((load-file-name file)) (macroexpand form)))
(memq (car expand) '(progn prog1 defalias)))
- autoload cl-defstruct constructor?, Stephen Leake, 2019/09/04
- Re: autoload cl-defstruct constructor?, Stefan Monnier, 2019/09/04
- Re: autoload cl-defstruct constructor?, Stephen Leake, 2019/09/05
- Re: autoload cl-defstruct constructor?, Stefan Monnier, 2019/09/06
- Re: autoload cl-defstruct constructor?, Stephen Leake, 2019/09/06
- Re: autoload cl-defstruct constructor?,
Stefan Monnier <=
- Re: autoload cl-defstruct constructor?, Stephen Leake, 2019/09/09
- Re: autoload cl-defstruct constructor?, Stephen Leake, 2019/09/09
- Re: autoload cl-defstruct constructor?, Stefan Monnier, 2019/09/09