Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-05 Thread Jason Oster
On 11/05/2010 08:42 AM, Colomban Wendling wrote: But from an efficiency point of view its much more work. Probably not a problem on a local filesystem, but on a remote filesystem it requires three transfers of the data instead of one, read the old file and write the backup then write the new

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-05 Thread Dimitar Zhekov
On Fri, 05 Nov 2010 10:57:23 -0700 Jason Oster jason.os...@campnavajo.com wrote: On 11/05/2010 08:42 AM, Colomban Wendling wrote: But from an efficiency point of view its much more work. Probably not a problem on a local filesystem, but on a remote filesystem it requires three transfers

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-05 Thread Dimitar Zhekov
On Thu, 04 Nov 2010 23:37:28 +0100 Colomban Wendling lists@herbesfolles.org wrote: Le 04/11/2010 21:42, Dimitar Zhekov a ecrit : For more than 20 years now, the only safe save is to write the data into a temporary file in the same directory, and then rename it over the target file.

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-05 Thread Colomban Wendling
Le 05/11/2010 20:08, Dimitar Zhekov a écrit : On Thu, 04 Nov 2010 23:37:28 +0100 Colomban Wendling lists@herbesfolles.org wrote: Le 04/11/2010 21:42, Dimitar Zhekov a ecrit : For more than 20 years now, the only safe save is to write the data into a temporary file in the same

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-05 Thread Dimitar Zhekov
On Fri, 05 Nov 2010 19:50:59 +0100 Colomban Wendling lists@herbesfolles.org wrote: Le 05/11/2010 20:08, Dimitar Zhekov a ecrit : a. Create filename-foo, write data to it, abort and unlink on failure. [...] Hey, that's quite clever :) We would then avoid to have to read the original

[Geany-devel] folding problem

2010-11-05 Thread WILLIAM FRASER
Hello all, I've spotted what might be two problems with folding... They are demonstrated with the following line of Java code: Image[] AnnimationPics; //{picture number,delay in 10ths of a second until changes to next image} This line is marked as a folding point when it should not be. Firstly:

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-05 Thread Colomban Wendling
Le 05/11/2010 21:33, Dimitar Zhekov a écrit : On Fri, 05 Nov 2010 19:50:59 +0100 Colomban Wendling lists@herbesfolles.org wrote: Le 05/11/2010 20:08, Dimitar Zhekov a ecrit : a. Create filename-foo, write data to it, abort and unlink on failure. [...] Hey, that's quite clever :) We

Re: [Geany-devel] folding problem

2010-11-05 Thread Jason Oster
On 11/05/2010 01:30 PM, WILLIAM FRASER wrote: Hello all, I've spotted what might be two problems with folding... They are demonstrated with the following line of Java code: Image[] AnnimationPics; //{picture number,delay in 10ths of a second until changes to next image} This line is marked as

Re: [Geany-devel] folding problem

2010-11-05 Thread Lex Trotman
On 6 November 2010 07:30, WILLIAM FRASER william.fra...@virgin.net wrote: Hello all, I've spotted what might be two problems with folding... They are demonstrated with the following line of Java code: Image[] AnnimationPics; //{picture number,delay in 10ths of a second until changes to next

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-05 Thread Lex Trotman
On 6 November 2010 04:57, Jason Oster jason.os...@campnavajo.com wrote: On 11/05/2010 08:42 AM, Colomban Wendling wrote: But from an efficiency point of view its much more work.  Probably not a problem on a local filesystem, but on a remote filesystem it requires three transfers of the data

Re: [Geany-devel] Changed file saving implementation for systems with GIO

2010-11-05 Thread Lex Trotman
On 6 November 2010 10:43, Colomban Wendling lists@herbesfolles.org wrote: Le 04/11/2010 21:42, Dimitar Zhekov a écrit : On Thu, 4 Nov 2010 17:53:47 + Nick Treleaven nick.trelea...@btinternet.com wrote: So it seems that function doesn't handle disk exhaustion safely. (But this is no