<p><a href="https://github.com/b4n" class="user-mention">@b4n</a> Ah, I assumed there's always a TMSourceFile available for any GeanyDocument (I assumed there would be a NONE type TMSourceFile for an untitled document). I just wanted to get rid of the -1 which correspons to LANG_AUTO that we shouldn't use. Using TM_PARSER_NONE is perfectly fine and logical in this case so your patch LGTM.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/943#issuecomment-193300266">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ6qs7rMeOx3pnak0qhok_lPO0j9Nks5prET2gaJpZM4Hq1wF.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/pull/943#issuecomment-193300266"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>