[long] Re: [clug] Elastic tabstops
duncan_roe at acslink.net.au
Fri Oct 17 10:47:03 GMT 2008
I think the diff option you refer to is -w. And there's no need to leave
indenting as you find it - you can run the whole lot through GNU indent to get
it to your liking (assuming it's C code)
Cheers ... Duncan.
On Fri, Oct 17, 2008 at 12:03:56PM +0200, Kim Holburn wrote:
> On 2008/Oct/17, at 3:27 AM, Alex Satrapa wrote:
> >So all this feature is doing is automating the setting of tab stops
> >for you. Finally computers can do something *at least as well* as a
> >mechanical typewriter.
> Yes, that's what I like about it.
> >When it comes to working with other people's code - just stick to
> >the whitespace conventions they started with. There's nothing more
> >annoying than having 148 lines of diff for a 148 line file where
> >some idiot decided to replace all tabs with 4 spaces. If you
> >demand compatibility with "cat", "more" and "less", use spaces.
> >Modern programmers use code editors to read and write source code,
> >so using TAB to align text to tab stops is a nicer option.
> I always prefer spaces because I often end up having to use odd
> different editors on different machines at different times. I have
> never liked the fixed 1 tab every fourth column default in many
> editors. It just messes everything up if you're using the wrong
> editor or if you change to another tabstop number your file looks like
> rubbish suddenly. I used to program in Occam where a 2 space indent
> was part of the language structure.
> As for diff, that's what the -b option is for isn't it?
> I'm not sure I like the idea of using proportional fonts for source of
> any sort though but it's not necessary at all really, the elastic tabs
> was all I was interested in.
> Kim Holburn
> IT Network & Security Consultant
> Ph: +39 06 855 4294 M: +39 3494957443
> mailto:kim at holburn.net aim://kimholburn
> skype://kholburn - PGP Public Key on request
> linux mailing list
> linux at lists.samba.org
Please avoid sending me Word or PowerPoint attachments.
More information about the linux