GNOME Bugzilla – Bug 129354
Auto save destroys files
Last modified: 2009-08-15 18:40:50 UTC
Backup before saving off, autosave on ... backups are still being saved and after closing a file, the latest version seems to get written to the backup file and the original file is reverted.
Runtime changes in auto save options are not getting reflected immediately. I have created another bug for this, bug#130748 and attached the patch. But it is seen that the latest changes are always retained in the original file and not written in the back up file as reported in the bug report.
I'm afraid neither of these reports /quite/ make it clear to me what the problem is- can one of you give step by step instructions to make it clear how to show data loss? like, (1) do X (2) do Y (3) data is gone? Thanks! if it is eating data, it is a serious problem, so we would want to fix it...
Luis: In gedit, changes of auto save options are not reflecting immediately, for that I had filed another bug, with bug# 130748 and have attached a patch as well. This bug report seems to be talking about the backup copy stuff. Explicit Save ---------------- a) When "Create Backup Copy" is set. A backup copy is created if one did not exit. Else it is updated to the latest saved changes. b) When "Create Backup Copy" not set. No backup copies are created. AutoSave Mode ---------------- Irrespective of what "Create Backup Copy" option is set, it will create a backup copy before doing the autosave if it was saved manually last time. Guess the above behaviour is right. If you concure with these views we can close the bug. Else kindly let me know what I am missing.
I concur that the outlined behaviour is correct for auto-save. The problem that I was experiencing was that the latest version of the document appeared to be winding up in the backup file and the original file was reverting to an earlier version. This problem manifested itself while I was editing Perl code and testing from the command line. I found that sometimes a previously working script would fail with errors that had been fixed. This seemed to occur only after the file had been closed in gedit. The script would work correctly when pulling in code copied from the backup file. Unfortunately I am unable to reproduce this now that I am trying to, and I haven't been using Autosave since reporting the bug. I don't know if you want to leave it open or close it and re-open if the bug resurfaces.
Closing