After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 129354 - Auto save destroys files
Auto save destroys files
Status: VERIFIED INCOMPLETE
Product: gedit
Classification: Applications
Component: general
2.4.x
Other Linux
: High major
: ---
Assigned To: Gedit maintainers
gedit QA volunteers
Depends on:
Blocks: 130389
 
 
Reported: 2003-12-15 06:42 UTC by danker
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description danker 2003-12-15 06:42:22 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.
Comment 1 Archana Shah 2004-01-07 05:22:33 UTC
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.
Comment 2 Luis Villa 2004-01-08 19:32:09 UTC
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...
Comment 3 Archana Shah 2004-01-14 10:19:56 UTC
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.
Comment 4 danker 2004-01-15 02:04:26 UTC
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.
Comment 5 Paolo Maggi 2004-07-13 12:59:34 UTC
Closing