abo-abo / pamparam

Simple and fast flashcards for Emacs
229 stars 16 forks source link

Changed-on-disk prompt when syncing #23

Closed daphniz closed 4 years ago

daphniz commented 4 years ago

When I sync I'm told files changed on disk and asked whether I really wish to edit buffers. This seems like something that shouldn't happen. I'll let you know if I find out what is producing this behaviour, which I assume you don't get. Or maybe you can guess.

daphniz commented 4 years ago

I guess what is happening is that pamparam alters the files while the buffers are open, and I guess a solution would be either to close the buffers or revert them. This may be connected to another issue I have, namely that entries that are removed or altered in the master file stick around in the cards. Perhaps this is because I habitually save all buffers and so overwrite changes made by pamparam.

abo-abo commented 4 years ago

As far as I'm aware, only the schedule file and the last card file are open by pamparam. All other buffers are automatically closed. If that's not the case, please provide a reproduction scenario.

daphniz commented 4 years ago

Create a new master file containing one card tree, and sync it. Then, change the answer and resync. At this point I am told File pampile.org changed on disk. Reread from disk into pampile.org?

abo-abo commented 4 years ago

Thanks, should be fixed now. Please test.