-
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
Remove unneeded progn. #56
Conversation
NB, the circleci failures seem to have been pre-existing issues that were simply hidden because of the progn wrapper; I could have a look at what’s what if you want, but won’t without a ping |
Hmmm... so, the goal of the |
However, I did go ahead and fix the lint errors in 93c414f :) |
Just out of curiosity, what's the packaging difficulty? It might help me better understand the use case, so that we could support it without the need for downstream patching. |
In guix, we have a broken packaged version of el-patch; we have an Emacs-build-system that has trouble with the progn around the macro; I found the easiest way to ‘make it work’ with a recent release of el-patch was to get rid of the progn. I understand the problem you describe, and agree with you that simply removing the |
NB, since these autoloadable things are macros, I could replace the autoload cookie by e.g.: Let me know what you find the best approach and I’ll adapt my patch to make it work for you. |
Another (simpler) solution would be to kick the macro to its own file (e.g. el-patch-def.el), and simply let autoload do its thing: el-patch.el will then simply |
Polite ping, @raxod502. Are you okay with the changes pushed to my branch, or should I look for a different approach? |
I am sorry for the delay. So, looking at your last few comments, the situation is definitely improved compared to the initial version of the PR, but it still has the problem of However, your suggestion to move the things that should be eagerly loaded into their own file is really a better solution, since it will make things a lot simpler. Let me try to implement this real quick based on your work, so you don't have to wait any longer for back and forth. |
There were a lot of complications in doing quite what you suggested, but I spent an hour or so trying out different approaches and in the end I was able to settle on the latest commit, which I believe solves the problem without introducing a regression or maintenance burden. I also updated the changelog accordingly. Can you let me know if this works for your use case? Even if the answer is no, I think this work will not go to waste, since it is an improvement on the previous implementation in terms of using the autoload system more like it was designed to be used, and it should reduce the number of things that are in the autoloads for |
@raxod502 it seems to build, and it seems to work. I haven’t tried fancy compiled-init.el things yet though. Thanks for getting my issue resolved! |
Awesome, no problem. Glad I could help, finally :) |
It did not actually seem to do anything (in modern Emacs versions), and it made it difficult to package el-patch in Guix. Please ignore if this is still needed; I will simply have to patch the packaged version on our end instead 👍