-
Notifications
You must be signed in to change notification settings - Fork 90
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
Incompatibility with package-quickstart
#771
Comments
Nah, scratch that, it doesn't fix it either. |
OK, this one seems to fare better (and I believe my test does now test what I intended):
|
Hi @monnier, thanks for your report and the patches! The code you touched was initially written by @cpitclaudel so I Cc him in case he'd like to comment as well. AFAIAC, I wasn't aware of I believe it'd be nice indeed to refactor this startup code provided this is backed up by CI tests. So I have 2 questions (Cc @hendriktews, feel free to comment if you have an opinion!)
|
So I have 2 questions (Cc @hendriktews, feel free to comment if you have an opinion!)
1. what test should we add to the CI to test that the refactor indeed fixes the issue?
Good question. Currently, I can reproduce the problem in the following
way:
- M-x package-quickstart-refresh RET
- rm ~/.emacs.d/package-quickstart.elc
- Run `emacs`.
Apparently when `~/.emacs.d/package-quickstart.el` gets compiled (which
is done automatically in recent Emacsen), the problem does not appear.
2. Is it needed to add some specific tests to ensure the refactor does
not break existing workflows?
Most likely, yes. Several years ago I had proposed and installed
a fairly different approach to this part of the initialization and it
broke some other workflow so it got reverted, but I don't think we
recorded the particular setup in a test. 🙁
|
Thanks for reporting the issue and the hints on testing. Am I right that before doing |
Indeed, I have How to test such changes before installing them is indeed not completely trivial because of the need to make the modified code appear as an installed package (for Assuming your Git clone is in
after which starting a new |
Thanks a lot, I will try to make a CI test out of this. |
To work around shenanigans in proof-general's autoloads. Should be reverted once ProofGeneral/PG#771 is resolved. Fix: #8169 Ref: ProofGeneral/PG#771
if you create a
~/.emacs.d/package-quickstart.el
file withM-x package-quickstart-refresh
, you may see startup error messages like:This is because of the use of
load-file-name
within aneval-and-compile
inside an autoloaded chunk of code.The patch below seems to fix it (and it also takes advantage of
macroexp-file-name
when available).The text was updated successfully, but these errors were encountered: