Skip to content

Make autoloads in synchronous subprocess#955

Merged
matsl merged 1 commit into
masterfrom
make_autoloads_in_sync_subprocess
May 16, 2026
Merged

Make autoloads in synchronous subprocess#955
matsl merged 1 commit into
masterfrom
make_autoloads_in_sync_subprocess

Conversation

@matsl
Copy link
Copy Markdown
Collaborator

@matsl matsl commented May 16, 2026

What

Avoid loading files within current Emacs when generating autoloads
while Hyperbole is being loaded. Dispatch the autoloads generation to
a subprocess to work around eager macro expansion error when loading
Hyperbole.

  • hload-path.el (hload-path--make-directory-autoloads-in-sync-subprocess):
    Run autoload generation in a synchronous subprocess.
    (hyperb:generate-autoloads): Use
    hload-path--make-directory-autoloads-in-sync-subprocess.

Why

The same issue with loaddefs-gen: load error (error "Eager
macro-expansion failure: ...) occurs when the generation is performed
within a running Emacs since the generation is done while Hyperbole is
being loading. That is the same situation as before with the make
autoloads target.

@matsl matsl requested a review from rswgnu May 16, 2026 09:07
Avoid loading files within current Emacs when generating autoloads
while Hyperbole is being loaded.

* hload-path.el (hload-path--make-directory-autoloads-in-sync-subprocess):
Run autoload generation in a synchronous subprocess.
(hyperb:generate-autoloads): Use
hload-path--make-directory-autoloads-in-sync-subprocess.
@matsl matsl force-pushed the make_autoloads_in_sync_subprocess branch from 812ca44 to 8b29276 Compare May 16, 2026 14:32
@matsl matsl merged commit d932119 into master May 16, 2026
4 checks passed
@matsl matsl deleted the make_autoloads_in_sync_subprocess branch May 16, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants