From 25640ce39cd0cb1fd5bcd5f5b1d76ade67e82ab1 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 9 Sep 2016 10:37:42 +0200 Subject: [PATCH] Make *-lyxformat-* backup files use .lyx~ extension At least now they look like real backup files. (cherry picked from commit d12ebb00b9050503872d81ea33d7804160aa2cd4) --- src/Buffer.cpp | 2 +- status.22x | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 5df91ec853..2f06f18e37 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1321,7 +1321,7 @@ Buffer::ReadStatus Buffer::convertLyXFormat(FileName const & fn, FileName Buffer::getBackupName() const { FileName const & fn = fileName(); string const fname = fn.onlyFileNameWithoutExt(); - string const fext = fn.extension(); + string const fext = fn.extension() + "~"; string const fpath = lyxrc.backupdir_path.empty() ? fn.onlyPath().absFileName() : lyxrc.backupdir_path; diff --git a/status.22x b/status.22x index acae4f6b17..de0029f59c 100644 --- a/status.22x +++ b/status.22x @@ -38,6 +38,8 @@ What's new - Do not hardcode required packages for Note inset. +- Make *-lyxformat-* backup files use .lyx~ extension. + * LYX2LYX