Re: [Geany-Devel] Simplifying file saving options

2015-08-21 Thread Lex Trotman
[...] It is unsafe due to a long standing bug where a failure deletes the copy of the original data without copying it back to the original file, so you are left with a truncated original file and no backup of the original data. You still have the new data in the Geany buffer of course. But

Re: [Geany-Devel] Simplifying file saving options

2015-08-19 Thread Lex Trotman
On 19 August 2015 at 23:39, Jiří Techet tec...@gmail.com wrote: On Wed, Aug 19, 2015 at 12:43 PM, Lex Trotman ele...@gmail.com wrote: On 19 August 2015 at 19:48, Jiří Techet tec...@gmail.com wrote: Hi, after some time spent debugging https://github.com/geany/geany/issues/605 I

[Geany-Devel] Simplifying file saving options

2015-08-19 Thread Jiří Techet
Hi, after some time spent debugging https://github.com/geany/geany/issues/605 I think the file saving options are a bit confusing and misleading and should be simplified. 1. Both g_file_set_contents() and g_file_replace_contents() do absolutely the same thing (saving to temporary file, then