On Sunday 06 March 2005 21:19, you wrote:
> IANAP (I am not a programmer) ;-)
>
> but I have been impersonating one lately...
>
> I submitted code to horde project and one thing they objected to was
> using tabs for indents instead of spaces. I now know how to create
> unified diffs, diffs against cvs and this all is a learning process for
> me.
>
> Language is php
>
> Editor is emacs
>
> It seems that there are times when tabs are automatically converted into
> space indentations and sometimes they aren't.
>
> Is there a method to convert all the tabs to spaces?
>
> Craig
>
In my ".emac" file, I've included the following line:
(setq-default indent-tabs-mode nil)
This forces it to use spaces instead of tabs. I was not aware of the
"tabify" and "untabify" commands in emacs that Joseph mentioned. I actually
wrote a little C program to do that. You probably don't want to use "tr"
because that will replace one tab with one space. You want the conversion to
preserve the indentations you intended when you wrote it, which is what my
little "detab" program does.
Vaughn
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss