home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Editor / DVD!FX17.LHA / FrexxEd / fpl / Backup.FPL.README < prev    next >
Encoding:
Text File  |  1994-11-18  |  1.6 KB  |  41 lines

  1. ############################################
  2. File: Backup.FPL
  3. Author: Daniel Stenberg
  4. Email: dast@sth.frontec.se, FidoNet 2:201/328
  5. Short description: Make backups at save-time
  6. Version: 1.0
  7. Date: 22.4.94
  8. Local settings: "backup" ("_backup" is hidden)
  9. Global settings: "backup_suffix"
  10. Keysequence:
  11. Type: Hook
  12. Prereq:
  13. ############################################
  14.  
  15. FUNCTION
  16.  
  17.   The reason for this program is to save us all from the following scenario:
  18. You load a file, modify and save it and then quits. You try to compile the
  19. new file and after the compiler has discovered the 47 errors in the file,
  20. you get second thoughts about the latest modification and want to get back the
  21. previous version of the file.
  22.  
  23.   This program hooks Save() and performs a safety copy of the file that is to
  24. be overwritten by the save operation. The backup is only performed at the
  25. first save of the file, at not at any later time during the editing session.
  26.  
  27.   The backup file will get a suffix that defaults to ".bak" (changeable
  28. through the "backup_suffix" global setting). If the backup file already exists
  29. when the backup copy is about to perform, a requester will appear propting if
  30. the file should be overwritten or not. Whether the answer is true or false,
  31. the operation will be marked internally as if the backup has been done!
  32.  
  33.   The backup option is switchable on/off with the local boolean setting called
  34. "backup".
  35.  
  36. BUGS
  37.  
  38.   I use the AmigaDOS command "list" to check whether the backup file already
  39. exist or not. Even with the stdout redirected to NIL: some error text will be
  40. generated to stderr (not redirectable!) when the backup file is absent.
  41.