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