Rationale:
On Emacs >=28, the default way to enable ansi-colors in compilation buffers is to add the new builtin fn ansi-color-compilation-filter to compilation-filter-hook.
Previously, zig-mode forced users to add a custom colorizing fn (colorize-compilation-buffer). In case ansi-color-compilation-filter is already used, this would lead to the ansi-coloring being applied twice (no functional error because it's idempotent).
Rationale: On Emacs >=28, the default way to enable
ansi-colors
in compilation buffers is to add the new builtin fnansi-color-compilation-filter
tocompilation-filter-hook
.Previously,
zig-mode
forced users to add a custom colorizing fn (colorize-compilation-buffer
). In caseansi-color-compilation-filter
is already used, this would lead to the ansi-coloring being applied twice (no functional error because it's idempotent).