Helge, Olivier -- thanks.
On my Mac (10.5.7), the backup preference doesn't seem to work. The
"~" file gets created at the first "save" and gets updated at
subsequent saves to reflect the prior save.
The emergency file has appeared on each of the handful of crashes
I've had the pleasure to witness.
The "#" files (i.e., filenames of the form "#newfile1.lyx#") have
appeared only a few times -- IIRC shortly after I create a new file
(presumably at the first save) in lieu of the "~" file.
Does anyone know what role the "#" are supposed to play?
humanengr
At 3:17 PM +0200 7/1/09, Helge Hafting wrote:
My impression after a quick test: The "~" files are made whenever you
save the document (File->Save) and is simply the previous version of
the file. This has nothing to do with emergency files, it lets you
recover if you make some mistake. For example, deleting some
important text and then save&quit.
At 3:39 PM +0200 7/1/09, Olivier Ripoll wrote:
Backup (lyx~) files are the ones saved every N minutes by LyX, where
N is 5 by default. You can set the backup period in the preferences.
Emergency files are files saved in case of a crash. LyX will look at
the file dates and can propose you to load the emergency file (or
the backup file) instead, if they are more recent. If you load the
emergency file, as long as you don't save it above the old one, you
have not lost anything and if it's corrupted, you can then try the
backup file or the original file.
LyX does not touch your original file as long as you don't ask it
to. I had one crash in 2000 because the X server had crashed, the
emergency file had everything correct till the last key pressed
before the crash.
I think I've had another crash since on Windows (probably an alpha
or beta of 1.6 IIRC), and I think then again, the emergency file was
fine.
So in fact, backups are more like to go back to an old version
(well, undo can do that too). Or a second safety belt.
Best regards,
Olivier