Hello,
Here is a trivial idea to limit the proliferation of
myfile-lyxformat-322.lyx files that are more annoying than helpful to
many people (or helpful in a Clippy sense). Can we at least use .lyx~ as
extension?
Patch attached. I do not know whether there are other things we should
care about.
JMarc
>From 2900ebadde83a4a407d52afde514fc9c3f626562 Mon Sep 17 00:00:00 2001
From: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date: Fri, 9 Sep 2016 10:37:42 +0200
Subject: [PATCH] Make *-lyxformat-* backup files use .lyx~ extension
At least now that look like real backup files
---
src/Buffer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 77ef949..e04c06b 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -1322,7 +1322,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;
--
1.7.9.5