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

Submitter:  Norbert Nemec <nnemec>
Submitted:  Fri 03 Nov 2006 09:59:07 AM UTC
   
 
Category:  None Action:  Cancelled
Privacy:  Public Assigned to:  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>
Group administrator
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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-03 vdhoeven ActionNone Cancelled
        Assigned toNone vdhoeven
        Open/ClosedOpen Closed
    2006-11-03 nnemec Attached File- Added autosave.diff, #11149
    2006-11-03 nnemec Attached File- Added autosave.diff, #11148

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code