The function should permit to check if an AuEvent is actually in use or
not. It would permit to change program behaviour at runtime, and reduce
the overhead of some functions when AuEvent isn't used.
return true;
}
+/**
+ * Return if an event is actually used by autocmd
+ */
+gboolean autocmd_in_use(AuEvent event)
+{
+ return usedbits & events[event].bits;
+}
+
/**
* Run named auto command.
*/
void autocmd_cleanup(void);
gboolean autocmd_augroup(char *name, gboolean delete);
gboolean autocmd_add(char *name, gboolean delete);
+gboolean autocmd_in_use(AuEvent event);
gboolean autocmd_run(AuEvent event, const char *uri, const char *group);
gboolean autocmd_fill_group_completion(GtkListStore *store, const char *input);
gboolean autocmd_fill_event_completion(GtkListStore *store, const char *input);