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

2010-11-10 Thread Nick Treleaven
On Wed, 10 Nov 2010 10:13:29 +1100 Lex Trotman ele...@gmail.com wrote: Also, g_file_replace_contents does have a make_backup argument we could provide an option for. This might handle the disk exhaustion problem. To summarise the long thread for you Nick, g_file_replace_contents and

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

2010-11-10 Thread Nick Treleaven
On Wed, 10 Nov 2010 13:25:56 + Nick Treleaven nick.trelea...@btinternet.com wrote: But since we don't write the file line-by-line or something, _why_ do we use buffered I/O in the first place?.. I don't know. But changing implementation often introduces bugs, so I'm

Re: [Geany-devel] R Tags

2010-11-10 Thread Jonathan Daily
I re-read the manual and tried the call again on some hefty source files: Nothing again. This time, however, I think I pinpointed my problem: my Geany version does not have the R parser. Time to update! Please disregard the previous messages. On Tue, Nov 9, 2010 at 6:23 PM, Lex Trotman

Re: [Geany-devel] HTML/XML autoindentation - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-11-10 Thread Nick Treleaven
On Tue, 2 Nov 2010 23:28:43 +0300 Eugene Arshinov earshi...@gmail.com wrote: I think just add a html_tag_autoindentation field to GeanyFiletypePrivate and use that. Okay, the patch is attached. Thanks, applied (with some changes). I named the field 'xml_indent_tags' and the filetype

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

2010-11-10 Thread Dimitar Zhekov
On Wed, 10 Nov 2010 13:25:56 + Nick Treleaven nick.trelea...@btinternet.com wrote: On Tue, 9 Nov 2010 21:27:07 +0200 Dimitar Zhekov dimitar.zhe...@gmail.com wrote: Well, g_file_set_contents() uses buffered I/O, so obviously it's acceptable too. Yes, it uses fwrite and then

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

2010-11-10 Thread Nick Treleaven
On Wed, 10 Nov 2010 20:02:53 +0200 Dimitar Zhekov dimitar.zhe...@gmail.com wrote: Ah, it sets errno = 0 first, assuming that fwrite() may fail to do so. I've now committed a fix so that any write failure should be reported to the user even if errno is 0. Please test. It won't be 0

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

2010-11-10 Thread Dimitar Zhekov
On Wed, 10 Nov 2010 18:14:04 + Nick Treleaven nick.trelea...@btinternet.com wrote: On Wed, 10 Nov 2010 20:02:53 +0200 Dimitar Zhekov dimitar.zhe...@gmail.com wrote: Why fake 0 errno as EIO? g_file_set_contents() doesn't, and *strerror() returns something for 0, usually Error 0.

Re: [Geany-devel] HTML/XML autoindentation - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-11-10 Thread Eugene Arshinov
On Wed, 10 Nov 2010 17:51:18 +% Nick Treleaven nick.trelea...@btinternet.com wrote: On Tue, 2 Nov 2010 23:28:43 +0300 Eugene Arshinov earshi...@gmail.com wrote: I think just add a html_tag_autoindentation field to GeanyFiletypePrivate and use that. Okay, the patch is

Re: [Geany-devel] R Tags

2010-11-10 Thread Lex Trotman
On 11 November 2010 07:55, Liviu Andronic landronim...@gmail.com wrote: On Tue, Nov 9, 2010 at 7:45 AM, Lex Trotman ele...@gmail.com wrote: Step 1, if you open an R file do you get symbols in the sidebar? Yes it does. Here on 0.20 (svn = r5271). Step one tick :-) This tests that Geany's R

Re: [Geany-devel] Attempted python plugin

2010-11-10 Thread Oliver Marks
thanks for the suggestions i will give them a try later but i believe i came across both post previously i dont think i tried the dll one, mainly because i thought it was windows specific, but i will also try those linker options again, i have actually done quite a lot of googling and tryed loads