I'm finding that its easier to untabify a file and then go line-by-line and fix any code that doesn't fit our coding style, then doing a syntax check and build to make sure it all works. Its like mowing the lawn :)
Jon
On Wed, 2004-02-04 at 09:55, Bryce Harrington wrote:
On Wed, 4 Feb 2004, Bob Jamison wrote:
Bryce Harrington wrote:
The next two questions are: Does anyone know a good method to untabify the entire codebase in one shot? Does anyone know how best to put modelines in the codebase to get vi and emacs to behave correctly?
Bryce
A 'sed' call in a shell script would likely do it.
Could you give an example? I think it's not as simple as replacing each \t with 4 spaces, since for instance there might be places where there is a space with a tab filling in the remaining 3 columns, and if you replaced with 4 spaces you'd end up with a 5-space indent. Emacs has an 'untabify' mode that is smart about cases like this, so I'm wondering if there's a way to do something like that on the whole codebase rather than file-by-file?
Bryce
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel