Andy Lester <andy(at)petdance(dot)com> writes:
>> So we're hardly alone in not doing it the way you're suggesting.
> Sure, and I'm sure there are plenty of projects that do use them to
> great effect, most notably Perl 5 and Parrot. Perl 5 specifically has
> had the mish-mosh of tabs-vs-spaces reduced by the addition of
> modelines.
The solution we've used for years is to run pg_indent over the tree
every so often. Unlike modelines, this works regardless of whether
patch authors saw fit to use the modelines ...
regards, tom lane