[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-indent] GNU Indent profile detection mode

From: Full Decent
Subject: Re: [Bug-indent] GNU Indent profile detection mode
Date: Tue, 9 Aug 2005 17:17:18 -0400

I want to indent code, but I don't know the magic string of options to
do what I want. However I do have a file formatted the way I like.

On 8/10/05, akarl <address@hidden> wrote:
> Full Decent wrote:
> > 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?
> I can't really see the usefulness of this feature. With GNU Indent every
> programmer can reformat a file to his or her liking. Whether you work on
> your own project or someone else's you are free to choose whatever
> indentation style you like for the files you work on.
> August

reply via email to

[Prev in Thread] Current Thread [Next in Thread]