<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 24 Aug 2016, at 23:13, Carpii UK wrote:</p>
<p dir="auto"></p></div>
<div style="white-space:pre-wrap"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><blockquote style="border-left:2px solid #777; color:#999; margin:0 0 5px; padding-left:5px; border-left-color:#999"><div dir="auto">TextMate reporting “Atomic Saving Failed” is a bit of a misnomer.
</div></blockquote></blockquote></div>
<div style="white-space:normal">
<p dir="auto">In current HEAD I improved this so now you see the actual issue (rather than having to read that in the console).</p>
<p dir="auto"></p></div>
<div style="white-space:pre-wrap"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div dir="auto">Thanks, I'm right in thinking ./Frameworks/file/src/save.cc is the place I
</div><div dir="auto">should be looking to make this change?
</div></blockquote></div>
<div style="white-space:normal">
<p dir="auto">This is probably what you want to change: <a href="https://github.com/textmate/textmate/blob/master/Frameworks/io/src/intermediate.h" style="color:#3983C4">https://github.com/textmate/textmate/blob/master/Frameworks/io/src/intermediate.h</a></p>
<p dir="auto">This abstracts away “atomic saving” and you could replace it with something that is basically a no-op, e.g.:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">struct PUBLIC intermediate_t
{
intermediate_t (std::string const& dest) : _path(dst) { }
operator std::string const& () const { return _path; }
operator char const* () const { return _path.c_str(); }
bool commit () const { return true; }
private:
std::string _path;
};
</code></pre>
<p dir="auto">Then just delete the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">intermediate.cc</code> file and you have “unsafe saving” that just overwrites the file in place.</p>
<p dir="auto">But don’t blame me if you experience data loss!</p>
</div>
</div>
</body>
</html>