@techee commented on this pull request.
@@ -167,6 +307,7 @@ PluginCallback plugin_callbacks[] = {
{"document-open", (GCallback) & on_doc_open, TRUE, NULL}, {"document-activate", (GCallback) & on_doc_activate, TRUE, NULL}, {"document-close", (GCallback) & on_doc_close, TRUE, NULL}, + {"document-filetype-set", (GCallback) & on_doc_filetype_set, TRUE, NULL},
Why does this happen in the `document-filetype-set` signal? This is emitted by Geany when filetype is set (e.g. manually using the Document menu) and IMO this shouldn't happen and calling it only in `on_doc_open()` should be enough.