Oh, I misread it, it returns an index to the array, I read it as returning an ID, ok, we probably need a `foreach_document_id` macro.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/964#issuecomment-196141903