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

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification 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: NoneAction: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 
Fixed Release: Stable: 

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 (2kB - 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

 

CC list is empty

 

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
Fri 03 Nov 2006 11:09:57 AM UTCnnemecAttached File-=>Added autosave.diff, #11149
Fri 03 Nov 2006 09:59:07 AM UTCnnemecAttached File-=>Added autosave.diff, #11148
Show feedback again

Back to the top


Powered by Savane 3.1-cleanup