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
emacs: improve setup hook #82604
emacs: improve setup hook #82604
Conversation
- Add packages installed in a sub-directory of site-lisp, such as mu4e, to EMACSLOADPATH. - Add ELPA packages to EMACSLOADPATH. - Add each package only once to EMACSLOADPATH. Before, each package would typically be added twice for each transitive dependency leading to a huge variable for a package having many dependencies. Fixed NixOS#78680
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, ill wait for a emacs users to verify though
Thanks! |
This seems to have broken byte-compilation of some packages with dependencies (?). I think building helm is sufficient to show the difference. Bad log (current master: 5e37578)
With this reverted, the log shows:
Bad
Good
|
This change fixes byte compilation of, e.g., Helm without breaking builds using, e.g., `trivialBuild`. See NixOS#82604 (comment)
@thefloweringash Please give the above PR a try to see if it resolves your issue. With that change the byte compilation works for me. |
This change fixes byte compilation of, e.g., Helm without breaking builds using, e.g., `trivialBuild`. See NixOS#82604 (comment) (cherry picked from commit d3eeaec)
Commented on the PR. Thanks for the quick fix! |
This change fixes byte compilation of, e.g., Helm without breaking builds using, e.g., `trivialBuild`. See #82604 (comment)
Would it be possible to get this backported to 20.03? Sorry if that's a dumb question, I'm not sure what the policy is on backporting... |
This change fixes byte compilation of, e.g., Helm without breaking builds using, e.g., `trivialBuild`. See NixOS#82604 (comment) (cherry picked from commit bf486f7)
This change fixes byte compilation of, e.g., Helm without breaking builds using, e.g., `trivialBuild`. See NixOS#82604 (comment) (cherry picked from commit bf486f7)
Add packages installed in a sub-directory of site-lisp, such as mu4e, to EMACSLOADPATH.
Add ELPA packages to EMACSLOADPATH.
Add each package only once to EMACSLOADPATH. Before, each package would typically be added twice for each transitive dependency leading to a huge variable for a package having many dependencies.
The load path problem with can be observed by running, e.g.,
in a Nixpkgs clone with and without this patch applied.
Fixed #78680