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: NoneAction: Cancelled
Privacy: PublicAssigned to: Joris van der Hoeven <vdhoeven>
Open/Closed: ClosedRelease: 
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" and a file "$TEXMACS_HOME_PATH/system/" exists and the user confirms "Recover autosave file?", the buffer "" used to be replaced by the content of A single File|Save would then result in overwriting the content of

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

Furthermore, the file 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
  • -unavailable- added by vdhoeven (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 03 Mar 2014 09:31:10 PM UTCvdhoevenActionNone=>Cancelled
      Assigned toNone=>vdhoeven
    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

    Back to the top

    Powered by Savane 3.1-cleanup1