[Geany-devel] Blanklines addons plugin (was: Re: Strip trailing blank lines (patch included))

Eugene Arshinov earshinov at xxxxx
Wed Sep 2 16:11:21 UTC 2009


Hi Enrico.

Enrico Tröger wrote:

> If you want SVN write access to commit your changes yourself, just tell
> me your Sourceforge username (and give me a a little time to set it
> up :D).

I think there is no need for me to access SVN. I want to just send 
patches, if you don't mind :-)

The attached patches are new "blanklines" addons plugin. It required 
some API changes.

First, I had to add new "document-before-save" signal, so that my plugin 
can access a document _before_ it is saved (existing "document-save" 
signal is sent _after_ that). I described the new signal in 
"doc/plugins.dox" and in the code comments near document_save_file(). I 
hope, adding the signal does not break ABI compatibility (I did not 
check it).

Second, I exported some sciwrappers needed by the plugin. I think, maybe 
it worths converting one-line wrappers into macros, so that we won't 
need to export them.

Order of the patches is clear: geany.1.<...> is the first, geany.2.<...> 
is the second, geany.3.<...> is the third. Another patch is for 
geany-plugins. I tested updated geany and new plugin here, everything 
seems to work nicely.

Best regards,
Eugene.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: geany.1.document-before-save-signal.patch
Type: text/x-patch
Size: 3649 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20090902/6049dbc3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: geany.2.export-sci-wrappers.patch
Type: text/x-patch
Size: 1843 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20090902/6049dbc3/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: geany.3.api-version.patch
Type: text/x-patch
Size: 503 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20090902/6049dbc3/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: geany-plugins.1.blanklines.patch
Type: text/x-patch
Size: 9918 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20090902/6049dbc3/attachment-0003.bin>


More information about the Devel mailing list