[Geany-Devel] [ANN] document_find_by_id() added to plugin API

Frank Lanitz frank at xxxxx
Wed Sep 3 22:41:02 UTC 2014


Am 29.08.2014 um 12:58 schrieb Nick Treleaven:
> On 28/08/2014 16:21, Nick Treleaven wrote:
>> Code that uses doc->is_valid or DOC_VALID() outside of iterating
>> documents_array probably should be using document_find_by_id() instead,
>> because closed document pointers only stay invalid until another
>> document needs to be opened.
> 
> Additional: if there is no chance of another document having been opened
> since, but there is a chance a document was closed, it should be fine to
> check doc->is_valid.

Do I understand you correct, that it would make sense to recheck every
plugin and in most cases replace(update the document-checks there?

Cheers,
Frank


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


More information about the Devel mailing list