Re: [dwm] more consistent codestyle patch

From: Matthias-Christian Ott <ott_AT_enolink.de>
Date: Wed, 14 May 2008 17:10:04 +0200

Premysl Hruby <dfenze_AT_gmail.com> wrote:

> On (14/05/08 16:24), Kai Grossjohann wrote:
> > To: dynamic window manager <dwm_AT_suckless.org>
> > From: Kai Grossjohann <kai_AT_emptydomain.de>
> > Subject: Re: [dwm] more consistent codestyle patch
> > User-Agent: Thunderbird 2.0.0.14 (X11/20080505)
> > Reply-To: dynamic window manager <dwm_AT_suckless.org>
> > List-Id: dynamic window manager <dwm.suckless.org>
> >
> > Marc Andre Tanner wrote:
> >> [...] That is, use tabs for indention and spaces for further alignment:
> >> ------->XGrabButton(dpy, AnyButton, AnyModifier, c->win, False,
> >> ------->............BUTTONMASK, GrabModeAsync, GrabModeSync, None, None);
> >>
> >> This way the user can set the tabwidth to whatever he likes and the code
> >> will still look decent.
> >
> > *drool*
> >
> > Is there a tool that does this?
> >
> > Kai
> >
> >
>
> indent(1) and there are other programs that this do.

I can confirm (I tried it) that indent doesn't supports some options
which would be necessary to imitate dwm style and therefore enable
automatic style testing.
So indent might be a useful tool if you use GNU style or KNF, but
otherwise it's simply useless.

Regards
Matthias-Christian
Received on Wed May 14 2008 - 17:11:05 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:39:31 UTC