diff options
| author | Stefan Monnier | 2025-11-18 17:23:11 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2025-11-18 17:23:11 -0500 |
| commit | be2b38ce14118a2ff312926602e64dc504b3bf71 (patch) | |
| tree | 5e4bbe6c975411ae261e8e2b6192663fcb277346 /java | |
| parent | 6b389a61c151e3b37eba4557bbb071682e0e4ac3 (diff) | |
| download | emacs-be2b38ce14118a2ff312926602e64dc504b3bf71.tar.gz emacs-be2b38ce14118a2ff312926602e64dc504b3bf71.zip | |
(lisp-indent-function): Auto-load macros to get the indent info
Rather than preload the `lisp-indent-function` property for
autoloaded macros, auto-load them to fetch their property.
In terms of cost, this slightly reduces the heap size at
startup, while tending to increase the heap size while editing
ELisp code since more packages will be (auto)loaded.
The benefit is elsewhere: by loading the definition the macro we
will also load other (non-autoloaded) definitions, so we get
better behavior for things like `ert.el` and `inline.el` where
only some of the macros are autoloaded, because there's a good
chance that we'll end up loading them to indent the autoloaded
macro, after which indentation of the other macros will be
performed correctly (bug#68818).
* lisp/emacs-lisp/byte-run.el (byte-run--dont-autoload): New function.
(macro-declarations-alist): Use it to override `byte-run--set-indent`.
* lisp/emacs-lisp/lisp-mode.el (lisp-indent-function): Auto-load macros
if needed to get the indent info.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions