]> git.eshelyaron.com Git - emacs.git/commit
Allow trivially autoloading uses of transient's define macros
authorJonas Bernoulli <jonas@bernoul.li>
Tue, 20 Feb 2024 17:49:20 +0000 (18:49 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 28 Feb 2024 17:37:16 +0000 (18:37 +0100)
commitddbca21e5722a8b0681934768e3dccefbe532608
tree812b2a93684b22f9a87854ddce7b2d04d54e87b2
parent2a5b1054444650b10c4d0914b04dc6ee1f3b4949
Allow trivially autoloading uses of transient's define macros

Since 49e41991b2f transient-define-prefix itself was autoloaded, but
that meant that when ever an autoload file was loaded, which contained
an autoload for a command defined using that macro, transient itself
had to be loaded.

That shouldn't be necessary.  For commands using these macros, an
autoload that is identical to what would have been generated if it
had been defined using defun, works just fine.

* lisp/emacs-lisp/loaddefs-gen.el
(loaddefs-generate--make-autoload): Allow uses of
transient-define-prefix, transient-define-suffix,
transient-define-infix and transient-define-argument
to be autoloaded using just ";;;autoload".

* lisp/transient.el (transient-define-prefix): No longer autoload.

(cherry picked from commit 167d9b9040333a5bff64325423750243c60edfa1)
lisp/emacs-lisp/loaddefs-gen.el
lisp/transient.el