GNU Indent profile detection mode

Full Decent <[email protected]>
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
David Ingamells,

I would like to make a suggestion and offer help to implement it,
however I need your insight to complete the task. Indent could scan a
file and detect the current indentation method already used in the
file. Additionally it could then point out inconsistancies in the
file.

If it were to be implemented external to indent, the algorithm would
be to apply each option individually and then diff | wc-l. Then keep
the options that cause the least changes for each set of competing
options.

I'm not sure if this should be implemented as a shell script external
to indent or if it belongs in the code.

What do you think?

Thanks,
Will Entriken
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.