-
Notifications
You must be signed in to change notification settings - Fork 27
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
git-auto-commit-mode not triggered by auto-save-mode #32
Comments
Hey! Thanks for reporting this issue. I hadn't considered this before. Which version of Emacs are you using? After having a quick look it appears that setting If using |
Hi, thank you for the quick and helpful reply. I replaced
In this respect, at least, auto-saving and explicit saving are not behaving identically. I'm using Emacs 27.1 (Spacemacs v.0.300.0) on macOS. |
Hmmm, I've tried to reproduce this. I've tested on both Emacs 28.0.50 and 27.1. I use plain Emacs and Archlinux however, though I'd be surprised if that made a difference because I didn't notice any special cases for either in the auto save code. I also use When it does automatically save the file it also commits the change for me. I also really don't know why it wouldn't because I'm sorry to ask this, I'm sure it's a dumb question, but did you restart Emacs when you changed from |
Thanks again for your detailed answer. I am happy to report that I managed to resolve the issue. As you hinted, part of the problem was that I was using Anyway, I appreciate your help, and kudos for developing such a useful package! |
Excellent :D And thank you, I'm glad it's useful to you. |
As far as I can tell, git-auto-commit-mode does not automatically commit when Emacs auto-saves a buffer to the same file (this will happen if
auto-save-visited-file-name
is set to true). Moreover, once the buffer is so saved, it ceases to be possible to commit even when attempting to save manually, since Emacs will refuse to save the buffer as there are no new changes to save. Is there a way to configure git-auto-commit-mode to resolve this issue?The text was updated successfully, but these errors were encountered: