<blockquote>
<p>It accesses geany_data->documents_array, yes, but that still gives access to the document pointers (ex. via the documents macro). It would be no safer with respect to the lifetime issues.</p>
</blockquote>

<p>what life time issues? Since we are single threaded we can safely assume that documents don't go away during a loop</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>You are receiving this because you are subscribed to this thread.<br>Reply to this email directly or view it on GitHub:<br><a href="https://github.com/geany/geany/issues/964#issuecomment-196697311">https://github.com/geany/geany/issues/964#issuecomment-196697311</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ7RVs67PBoovrXfNrZLMrapnUlMhks5ptl2UgaJpZM4HvvHU.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/964#issuecomment-196697311"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>