Skip to content
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

Set load-prefer-newer globally #113

Open
cg505 opened this issue Jul 7, 2018 · 1 comment
Open

Set load-prefer-newer globally #113

cg505 opened this issue Jul 7, 2018 · 1 comment

Comments

@cg505
Copy link
Contributor

cg505 commented Jul 7, 2018

load-prefer-newer tells load to pick the .el file if it is newer than the .elc (and vice versa, of course). This can incur a speed penalty. We need this on for emacs lisp that we write, since there is no guarantee that the compiled version is the most recent. We have been let-binding load-prefer-newer to t when loading hubs to avoid this issue. However, it seems likely that that binding does not affect autoloads. I don't see any simple/non-hacky way to deal with correctly loading the right version of autoloaded files in our config without simply setting load-prefer-newer globally. I don't expect the speed penalty to be significant. Thoughts?

@rye
Copy link
Member

rye commented Aug 14, 2018

@cg505, setting load-prefer-newer globally seems like a good idea to me and something which should have a minimal effect on performance, especially if we get to drop let-binding it whenever we load hubs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants