elextr at xxxxx
Sun Feb 26 21:23:41 UTC 2012
>> My personal preference would be some shared static function that any plugin
>> using markers could access.
> A simple ui_utils function to find and return the first available
> marker based on SC_MARK_AVAILABLE would suffice.
The absolute minimum we need is for Geany to set unused markers to
available. Geany has to do this, it is the only thing *guaranteed* to
run before all plugins.
It is not clear to me if it has to be done for each scintilla buffer,
each view or once only.
Plugins or Geany can then simply search for the next available one.
and allocate it by setting it to something other than available.
Since every mark using plugin should do it it is probably better to
have a common function in Geany. It can then also generate a message
to the user suggesting unloading a plugin if it runs out of markers.
Plugins should be re-written to use this scheme as soon as possible,
until then those with fixed marker numbers will still stomp all over
the others as they do now.
Bookmarks should also be re-written to only use the number of markers
as current bookmarks, not grab ten at startup.
> E-gards: Jimmy
> Geany-devel mailing list
> Geany-devel at uvena.de
More information about the Devel