patchGNU TeXmacs - Patches: patch #5519, recover-auto-save - fix dangerous...

 
 

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

patch #5519: recover-auto-save - fix dangerous behavior

Submitted by:  Norbert Nemec <nnemec>
Submitted on:  Fri 03 Nov 2006 09:59:07 AM UTC  
 
Category:  None Action:  Cancelled
Privacy:  Public Assigned to:  Joris van der Hoeven <vdhoeven>
Open/Closed:  Closed Release: 
Fixed Release:  Stable: 

Mon 03 Mar 2014 09:31:10 PM UTC, comment #2:

This patch is no longer needed; the load/save system has been redesigned completely in the meantime.

Thanks anyway for the contribution, --Joris

Joris van der Hoeven <vdhoeven>
Project AdministratorIn charge of this item.
Fri 03 Nov 2006 11:09:57 AM UTC, comment #1:

The newly attached patch contains an additional hack to mark a loaded autosave file as dirty.

A clean way to do the same thing would have been to introduce a new Guile command doing the exact opposite of pretend-save-buffer - however, I did not want to start changing C++ code for that...

Norbert Nemec <nnemec>
Fri 03 Nov 2006 09:59:07 AM UTC, original submission:

This patch fixes the most important part of Bug #17191:

When a file is opened using the command line "texmacs myfile.tm" and a file "$TEXMACS_HOME_PATH/system/autosave.tm" exists and the user confirms "Recover autosave file?", the buffer "myfile.tm" used to be replaced by the content of autosave.tm. A single File|Save would then result in overwriting the content of myfile.tm.

The patch solves the problem by opening autosave.tm in a new "no name" buffer.

Furthermore, the file autosave.tm is now deleted even if "Recover autosave file?" is answered by "No".

Norbert Nemec <nnemec>

 

Attached Files
file #11149:  autosave.diff added by nnemec (2KiB - text/plain)
file #11148:  autosave.diff added by nnemec (766B - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vdhoeven (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can 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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    Mon 03 Mar 2014 09:31:10 PM UTC vdhoeven ActionNone => Cancelled
        Assigned toNone => vdhoeven
        Open/ClosedOpen => Closed
    Fri 03 Nov 2006 11:09:57 AM UTC nnemec Attached File- => Added autosave.diff, #11149
    Fri 03 Nov 2006 09:59:07 AM UTC nnemec Attached File- => Added autosave.diff, #11148

    Back to the top


    Powered by Savane 3.3