* bug#71382: 30.0.50; [WISHLIST] loaddefs-generate--make-autoload should expose variables which can be added to
@ 2024-06-05 10:40 Nicholas Vollmer
0 siblings, 0 replies; only message in thread
From: Nicholas Vollmer @ 2024-06-05 10:40 UTC (permalink / raw)
To: 71382
When improving EXWM, we wanted to write a macro which expanded to
a global minor mode definition. However, adding an ;;;###autoload
cookie did not generate the proper autoloads because
loaddefs-generate--make-autoload had no way of knowing our macro
needed to be expanded first. It would be nice if these lists in
loaddefs-generate--make-autoload could be moved out into a
variable, so it can be added to programmatically:
;; For complex cases, try again on the macro-expansion.
((and (memq car '(easy-mmode-define-global-mode
define-global-minor-mode
define-globalized-minor-mode defun defmacro
easy-mmode-define-minor-mode define-minor-mode
define-inline cl-defun cl-defmacro
cl-defgeneric
cl-defstruct pcase-defmacro iter-defun
cl-iter-defun))
(macrop car)
;; For special function-like operators, use the `autoload'
function.
((memq car '(define-skeleton define-derived-mode
define-compilation-mode define-generic-mode
easy-mmode-define-global-mode define-global-minor-mode
define-globalized-minor-mode
easy-mmode-define-minor-mode define-minor-mode
cl-defun defun* cl-defmacro defmacro*
define-overloadable-function
transient-define-prefix transient-define-suffix
transient-define-infix
transient-define-argument))
That would prevent another package like transient from having to
patch loaddefs-gen.el directly.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-05 10:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-05 10:40 bug#71382: 30.0.50; [WISHLIST] loaddefs-generate--make-autoload should expose variables which can be added to Nicholas Vollmer
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).