[Geany-Devel] [ANN] document_find_by_id() added to plugin API
Nick Treleaven
nick.treleaven at xxxxx
Thu Aug 28 15:21:39 UTC 2014
See:
http://www.geany.org/manual/reference/document_8h.html#aa14a04c6596cd3261b325c73cb21866f
Real-world example when clicking a Messages item:
https://github.com/geany/geany/commit/18181c2e9043add8b13c1fc94c66db2ca5b885be#diff-3
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.
Regards,
Nick
More information about the Devel
mailing list