<p></p>
<p>What your change suggests to me is that you'd encounter cases where <code>document_get_current()</code> doesn't return the document for which the signal was fired for.  This sounds weird for the <code>activate</code>/<code>new</code>/<code>open</code>/<code>reload</code>/<code>filetype-set</code> signals you're using, and definitely something that should be fixed if it's indeed not in sync (e.g. the signal is fired before the changes that make <code>document_get_current()</code> return the right value happen) -- unless there is an actual reason for that, but still.</p>
<p>I'm sympathetic to the base idea of using the document for which the signal was fired though.  But it really seems like it should be strictly equal to <code>document_get_current()</code>.</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, <a href="https://github.com/geany/geany-plugins/pull/1064#issuecomment-776978500">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ4LJUKOMNBJOHONNCDS6LQ43ANCNFSM4XLLJVAA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJZJN2RNJSTUUIJ4IB3S6LQ43A5CNFSM4XLLJVAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFZH4ARA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/pull/1064#issuecomment-776978500",
"url": "https://github.com/geany/geany-plugins/pull/1064#issuecomment-776978500",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>