bugGNU TeXmacs - Bugs: bug #17191, autosave dangerous

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #17191: autosave dangerous

Submitted by:  Norbert Nemec <nnemec>
Submitted on:  Mon 24 Jul 2006 08:03:27 AM UTC  
 
Category: File ManagerPriority: 5 - Normal
Item Group: ErrorStatus: Invalid
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Closed
Release: 1.0.6Release: None
Fixed Release: NoneFixed Release: 
Keywords: 

Sun 17 Jul 2011 07:01:27 PM UTC, comment #1:

As of 1.7.10 this report is no longer valid, except for the last item ("TeXmacs breaks convention") which merits it's own tracker id.

Miguel de Benito <mdbenito>
Project Member
Mon 24 Jul 2006 08:03:27 AM UTC, original submission:

As of 1.0.6, the autosave feature is dangerous:

  • If I open something.tm and something.tm~ exists and is newer then something.tm, I am not notified of this fact, running danger of overwriting this potentially valuable autosaved file
  • If a file ~/.TeXmacs/system/autosave.tm exists, I am generally asked whether I want to restore this autosaved file. If I do so, it is opened with the name of the file that I wanted to open originally, even if it contains completely different content. If I accidentally save this "restored" file, it overwrites the file I wanted to work on originally

The feature also is seriously annoying:

  • If I work on a scratch file without saving it, it is written to ~/.TeXmacs/system/autosave.tm and retained there, even when I close the file regularly, explicitely stating that I don't want to save the file. Lateron, I'm asked whether to restore the autosaved data, only to find that it is the garbage I didn't want to see again.
  • Once the file ~/.TeXmacs/system/autosave.tm exists, I have to kill it manually to get rid of it. If I don't do so, TeXmacs tries over and over again to restore the data from it.

Furthermore, TeXmacs breaks convention:

  • usually a file trailed by "~" is a backup file. Autosave files are usually marked by trailing "#" or something similar (see behavior of emacs as an example) TeXmacs mixes the concept of autosave files (written periodically while the file is open and deleted when it is saved or closed explicitely) and backup files (which contain the old content of a file before an explicit save). These two concepts serve very different purposes and should not be mixed up: autosave protects against program or system crashes, backup protects against accidental changes by the user.
Norbert Nemec <nnemec>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mdbenito (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 17 Jul 2011 07:01:27 PM UTCmdbenitoStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup