Re: [Geany-devel] Questions on inserting text & indentation

2010-05-03 Thread Colomban Wendling
Nick Treleaven a écrit : > On Thu, 29 Apr 2010 20:59:40 +0200 > Colomban Wendling wrote: > >> I attach a patch that adds sci_get_line_indentation() and >> sci_set_line_indentation() to the plugin API. I don't need the latter > > Thanks, committed. Great, thanks! Regards, Colomban __

Re: [Geany-devel] Questions on inserting text & indentation

2010-05-03 Thread Nick Treleaven
On Thu, 29 Apr 2010 20:59:40 +0200 Colomban Wendling wrote: > I attach a patch that adds sci_get_line_indentation() and > sci_set_line_indentation() to the plugin API. I don't need the latter Thanks, committed. > but I have added it because I think they goes quite together; but if you > don't t

Re: [Geany-devel] Questions on inserting text & indentation

2010-04-29 Thread Colomban Wendling
Nick Treleaven a écrit : > On Thu, 29 Apr 2010 19:13:25 +0200 > Colomban Wendling wrote: > >>> Can you give a code example of what you're trying to do? >> The real code can be found only through SF's VC viewer: >> http://geany-plugins.svn.sourceforge.net/viewvc/geany-plugins/trunk/geanygendoc/src

Re: [Geany-devel] Questions on inserting text & indentation

2010-04-29 Thread Nick Treleaven
On Thu, 29 Apr 2010 19:13:25 +0200 Colomban Wendling wrote: > > Can you give a code example of what you're trying to do? > The real code can be found only through SF's VC viewer: > http://geany-plugins.svn.sourceforge.net/viewvc/geany-plugins/trunk/geanygendoc/src/ggd.c?revision=1316&view=markup#

Re: [Geany-devel] Questions on inserting text & indentation

2010-04-29 Thread Colomban Wendling
Nick Treleaven a écrit : > On Thu, 29 Apr 2010 00:28:02 +0200 > Colomban Wendling wrote: > >> In my GeanyGenDoc plugin I was using sci_insert_text() to insert the >> generated documentation comment; but I wanted to be able to indent the >> inserted comment to follow the indentation at the inserti

Re: [Geany-devel] Questions on inserting text & indentation

2010-04-29 Thread Nick Treleaven
On Thu, 29 Apr 2010 00:28:02 +0200 Colomban Wendling wrote: > In my GeanyGenDoc plugin I was using sci_insert_text() to insert the > generated documentation comment; but I wanted to be able to indent the > inserted comment to follow the indentation at the insertion position. > > I found editor_i

[Geany-devel] Questions on inserting text & indentation

2010-04-28 Thread Colomban Wendling
Hi, In my GeanyGenDoc plugin I was using sci_insert_text() to insert the generated documentation comment; but I wanted to be able to indent the inserted comment to follow the indentation at the insertion position. I found editor_insert_text_block() which seemed quite interesting, but it didn't do