diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-12-17 01:17:11 +0100 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-12-17 01:17:11 +0100 |
| commit | deed71ac895451041359d7b18e58eca0a0972bc3 (patch) | |
| tree | 2cce2c266b2f92fca45335c95f0a4b8f4945d31e /contrib/dlmalloc/ssh:/git.fmsbw.de | |
| parent | ad0780c7163c9673f89dc584d2a6096f317bec2b (diff) | |
implemented backup file mechanismHEADmaster-fmsbw-cimaster
* The backup mechanism is supposed to guard against crashes of SciTECO and
unexpected program terminations (e.g. power cycling, etc.)
* In a given interval (no matter whether busy or idlying on the prompt)
SciTECO saves all modified buffers with the filename~ (like most other editors).
As an optimization files are not backed up if they have been backed up
previously to avoid pointless and possibly slow file system writes.
* While the backup mechanism exists outside of the usual undo-paradigm -
backup file creating is not bound to character input and it makes no sense
to restore the exact state of backup files - there are some interesting
interactions:
* When a buffer is dirtyfied or saved that was previously backed up, it must always
be reset to the DIRTY state on rubout, so backups are eventually recreated.
* When a buffer is dirtyfied first (was clean), the backup file must be
removed on rubout as well - we don't expect backup files for clean buffers.
* There is currently no automatic way to restore backup files.
This could potentially be done by opener.tes and session.tes in the future,
although you couldn't currently always get meaningful user feedback
(whether he wants to restore the file).
Perhaps we should at least log a message when detecting backup files that
are newer than the file that is being opened.
Diffstat (limited to 'contrib/dlmalloc/ssh:/git.fmsbw.de')
0 files changed, 0 insertions, 0 deletions
