On Mon, Dec 04, 2000 at 07:49:19PM +0100, Lars Gullik Bjønnes wrote: > Thomas Steffen <[EMAIL PROTECTED]> writes: > > | [snipped] > > Only if you define what minor revisions are... I am not sure the > change from 1.1.4 to 1.1.5 is a minor revision (and please forget the > numbers). 1.1.4 to 1.1.4fix1 is a minor revision I guess. Debian stable has 1.1.4fix3, so I guess quite some people will be bitten by the file format changes (it happened recentely to a coworker of mine). > > | So far LyX *was* backward > | compatible, at least between the releases I have used (thats 1.0.1 to > | 1.1.5 IIRC). > > This is only by coincidence. > And probably not quite true either. LyX 0.12.0 (at least) did use format 2.15. I'd suggest an alert box if the file's lyxformat is greater than the format recognized by LyX (currently a console ``ERROR'' message is output if format - LYX_FORMAT > 0.05). Attached is a patch for 1.1.5fix2; would you accept one for 1.1.6? Beware--my patch is not sufficient: in 1.1.5, if a decimal separator other than the point is used, Buffer::readFile will believe lyxformat==2.00; thus no warning. > > | Remember the Word 97 thingy? > > What about it? > > Lgb -- Yves
--- /home/stid/src/lyx-1.1.5fix2/src/buffer.C Fri Oct 13 14:25:42 2000 +++ /misc/rlin/home/zeb/src/lyx-1.1.5fix2/src/buffer.C Mon Dec 4 20:13:31 2000 @@ -1099,9 +1099,10 @@ printf(_("Warning: need lyxformat %.2f but found %.2f\n"), LYX_FORMAT, format); } - if (format - LYX_FORMAT > 0.05) { - printf(_("ERROR: need lyxformat %.2f but found %.2f\n"), - LYX_FORMAT, format); + if (format > LYX_FORMAT) { + WriteAlert(_("Warning!"), + _("This document was created using +a newer version of LyX."), + _("Please check for incorrect text +or formating.")); } bool the_end = readLyXformat2(lex, par); // Formats >= 2.13 support "\the_end" marker