Can you not use `document_find_by_id()` as is recommended by the [API docs](http://www.geany.org/manual/reference/document_8h.html#ad1bf4d7a9d5bd299793e...
But, as its documented to be in the API it looks simply like its a bug.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/964#issuecomment-196130599