Ted Zlatanov
2014-10-07 03:11:40 UTC
I sometimes update my newsrc.eld in a directory shared between multiple
machines. I wanted a way to stop Gnus from overwriting the updated
file.
I came up with the following untested patch, which adds a customizable
option to do that check and saves the last modification time. But I
didn't finish testing or commit it because I had two questions:
1) is there a more elegant way to do this with file reverting? It seems
like Emacs can usually tell if the file needs to be reverted.
2) should I make and use a new newsrc pre-save hook?
Let me know what you think...
Thanks
Ted
machines. I wanted a way to stop Gnus from overwriting the updated
file.
I came up with the following untested patch, which adds a customizable
option to do that check and saves the last modification time. But I
didn't finish testing or commit it because I had two questions:
1) is there a more elegant way to do this with file reverting? It seems
like Emacs can usually tell if the file needs to be reverted.
2) should I make and use a new newsrc pre-save hook?
Let me know what you think...
Thanks
Ted