diff options
| author | Stefan Monnier | 2025-11-22 06:52:55 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2025-11-22 06:56:46 -0500 |
| commit | 46d0f1fef197f2049436a6fabca7f9e929b476a6 (patch) | |
| tree | 884a004aedb0271eba1de9d9938955b732ea54c5 /java | |
| parent | b193a78a6f3ee254c8eeb6bb612cefd348683a9d (diff) | |
| download | emacs-46d0f1fef197f2049436a6fabca7f9e929b476a6.tar.gz emacs-46d0f1fef197f2049436a6fabca7f9e929b476a6.zip | |
(loaddefs-generate--make-autoload): Fix bug#79852
As JD Smith <jdtsmith@gmail.com> said we had 3 paths:
1. macro has `autoload-macro expand` and is already loaded: expand
2. macro has `autoload-macro expand` but is /not/ yet loaded: shortcut
3. macro does not have `autoload-macro expand`: shortcut
and the co-existence of 1 and 2 is a problem because it means
that same macro is sometimes handled one way and sometimes
another, with different results.
Remove number 2 by removing from the shortcut all the remaining
macros that have `autoload-macro expand`.
The immediate effect is that `make autoloads` now (auto)loads three
more files:
[...]
loaddefs-gen: loading file frameset (for cl-defun)
Loading frameset...
INFO Scraping 1547 files for loaddefs...10%
INFO Scraping 1547 files for loaddefs...20%
loaddefs-gen: loading file semantic/analyze (for define-overloadable-function)
Loading semantic/analyze...
INFO Scraping 1547 files for loaddefs...30%
INFO Scraping 1547 files for loaddefs...40%
INFO Scraping 1547 files for loaddefs...50%
INFO Scraping 1547 files for loaddefs...60%
INFO Scraping 1547 files for loaddefs...70%
loaddefs-gen: loading file tramp-adb (for tramp--with-startup)
Loading tramp-adb...
INFO Scraping 1547 files for loaddefs...80%
loaddefs-gen: loading file grep (for define-compilation-mode)
Loading grep...
[...]
* lisp/emacs-lisp/loaddefs-gen.el (loaddefs--defining-macros):
Remove macros that are marked `autoload-macro expand`, even if they are
not predefined.
(loaddefs-generate--make-autoload): Simplify accordingly.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions