-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Byte-compile packages in child Emacs process #76
Comments
Forgive the drive-by comment, but the |
Just leaving this here for how the async package @slippycheeze mentioned does it: |
Yes async package provide |
Looks like "someday" turned out to be a little over three years: #624 (comment) Eh, could have been worse---I'll take it. |
Radon Rosborough <notifications@github.com> writes:
Hasn't bit me yet, but I know it will someday.
Looks like "someday" turned out to be a little over three years: #624 (comment)
Eh, could have been worse---I'll take it.
Didn't follow the full thread, but it seems it is about compiling
packages async.
Compiling packages async is needed with package.el which does the
compilation of packages straight after fetching them i.e. while the old
package version is still loaded, it is here the problem happen if e.g. a
macro is modified/renamed in new package, I made
`async-bytecomp-package-mode` (see
https://github.com/jwiegley/emacs-async/blob/master/async-bytecomp.el#L151)
for this reason.
I am new to straight.el and haven't yet looked at its code carefully,
but it seems the packages are recompiled when emacs restart, so at this
point the old version of package is no more loaded and IMHO there is no
need to compile it async because you can't hit the problem described
above, but maybe it is because I always restart emacs after calling
`straight-pull-all`? But what about people using `straight-rebuild-package`
or `straight-rebuild-all` (not good IMO unless you know what you are doing)?
Thanks for straight.el.
…--
Thierry
|
Separates byte-compilation from state of running Emacs. See: radian-software#76, radian-software#624
Separates byte-compilation from state of running Emacs. See: radian-software#76, radian-software#624
You are correct in that the specific |
Otherwise, the compilation is affected nondeterministically by the state of the running Emacs. Hasn't bit me yet, but I know it will someday.
The text was updated successfully, but these errors were encountered: