commit 25640ce39cd0cb1fd5bcd5f5b1d76ade67e82ab1
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Fri Sep 9 10:37:42 2016 +0200

    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 deletions(-)

diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 5df91ec..2f06f18 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 acae4f6..de0029f 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
 

Reply via email to