[Geany-devel] Markers

Frank Lanitz frank at xxxxx
Sun Mar 11 10:36:22 UTC 2012


Am 11.03.2012 07:16, schrieb Alexander Petukhov:
> 
>> So all we need is the initialisation, and probably a common search
>> routine for the convenience of plugins (although that isn't absolutely
>> needed).  The smaller the patch the more likely someone has time to
>> test it and commit it.
>>
>>    
> I would vote for having utility functions that manages a list of
> available markers
> instead of letting plugins manually find those that are marked with
> SC_MARK_AVAILABLE.
> 
> I can imagine a situation when some plugin set its markers for several
> documents but didn't do it for others,
> so when another plugin tries to set it's own markers it came to that
> markers idenifiers for the same markers are different in different
> documents that means it's another job to keep track of it.
> 
> having such functions as utils_ui_get_marker(), utils_ui_free_marker()
> seems more clear and robust.

I agree. Not because I really expect this going to happen very often,
but because of it sounds like a cleaner solution for me with a defined
API for plugin codes.

Cheers,
Frank

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.geany.org/pipermail/devel/attachments/20120311/ad330b61/attachment.pgp>


More information about the Devel mailing list