[cfe-dev] A patch for chroot checker
Jim Grosbach
grosbach at apple.com
Wed Sep 15 08:11:34 PDT 2010
In Emacs:
C-x h
M-x untabify
>From the command line (assuming a *nix shell):
$ sed -e 's/'"$(printf '\011')"'/ /g' filename -o tmp.out
$ mv tmp.out filename
You can tell Emacs to not insert tabs by setting indent-tabs-mode to nil in your startup file. The usual places for Emacs documentation and hints should have some samples of how to do this for only .cpp/c/h/etc files and keep using tabs for things like Makefiles. You may also find it useful to set Emacs up to highlight tab characters for you (http://www.emacswiki.org/cgi-bin/wiki/show-wspace.el).
Regards,
Jim
On Sep 15, 2010, at 1:09 AM, 章磊 wrote:
> Hi, zhongxing
>
> Thanks.
>
> If i already used some tabs, how to find it and fix it?
>
>
> 2010/9/15 Zhongxing Xu <xuzhongxing at gmail.com>
> Minor nit: please don't use tabs (they appear in a few places in your patch).
>
> Sorry, but how to check this?
>
> If you use emacs, set indent-tabs-mode to nil.
>
>
>
> --
> Best regards!
>
> Lei Zhang
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list