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
evil-collection-diff-mode breaks magit-commit #156
Comments
Thanks for the awesome report! I'll leave @Ambrevar for this one as I think he's the expert on diff-mode. I'll give it a shot to reproduce at the very least once I have some time. Any suggestions or PRs would work too. :) |
I'll look into it soon, thanks for reporting! |
I could not reproduce but you've highlighted a weakness in the read-only switch. @Deewiant: Let me know if that works for you. |
@Ambrevar I'm afraid it doesn't fix the issue, but I think I know why you couldn't reproduce it. My mistake for not properly checking vanilla git configuration — I have Another thing I forgot to mention is version numbers. I'm running the latest stuff from MELPA so (Thanks for the tip about |
OK, I could reproduce this time. |
Thanks, that indeed works. I think it makes sense for |
The way in which
evil-collection-diff-mode
unconditionally enablesread-only-mode
breaks committing in Magit (similarly to the waydiff-default-read-only
used to: magit/magit#3170).Should be easy to reproduce by attempting to commit anything with Magit after calling
evil-collection-init
but here are from-scratch reproduction instructions anyway, starting in a terminal:And now in emacs:
At this point the process buffer should look like:
Which pointed me to magit/magit#3170. The fix there — magit/magit@746f236 — overrides
diff-default-read-only
but that's not something that affects the behaviour ofevil-collection-diff-mode
in any way. Maybe it should? I could also see this being considered as another Magit bug but I'm not sure if it's reasonable for Magit to detect an arbitrary hook that setsread-only-mode
.The text was updated successfully, but these errors were encountered: