-
Notifications
You must be signed in to change notification settings - Fork 12
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
[MERGED] Compute patch result at compile time #11
[MERGED] Compute patch result at compile time #11
Conversation
Indeed. As you've probably noticed, the Travis build is failing due to a byte-compilation error. Also, could you make sure there are no lines longer than 80 characters? Otherwise this looks fantastic. Looking forward to merging. |
Oh yes—the README (new section, I think, for compile-time-only usage) and CHANGELOG (the Unreleased section; see Keep a Changelog) will also need to be updated. |
@raxod502 for patches to be defined without |
Can't we make it so that Alternatively, we could autoload |
This is so the user need not define it manually before using el-patch only at compile time.
7c72d95
to
064d8ea
Compare
Is this what you had in mind? |
Should be fine. I will most likely make some editorial changes so that the style is consistent. But that is easy enough. I don't think |
064d8ea
to
253e661
Compare
Hooks are automatically defined if they didn't previously exist, right? |
You're right. I guess there's no need for autoloading the hook. |
Cherry-picked in 4731a62. Please test. |
This should move the patch computation to compile time, allowing the byte compiler to optimize the function definitions ahead of time. It also means that
el-patch
need not be loaded at runtime, unless the user would like to interact with the patches usingel-patch
's UI.I'm currently running this, but it may take some work to get it into a mergable state.