The poor definition of tabs has caused plenty of grief. After this mail I think I will switch to spaces from now on. Good post, John Chung --- On Sat, 7/12/08, Tamas Rudnai wrote: > From: Tamas Rudnai > Subject: Re: [PIC] EEPROM Read Problems > To: "Microcontroller discussion list - Public." > Date: Saturday, July 12, 2008, 2:30 AM > > By now people really should know not to put tab > characters in files you > > expect others to look at, especially when they are > asking them to do so as > a > > favor. > > I agree with you about TAB-is-a-no-no, however, MPLAB's > default is to use > TAB. So it is for vim - the first thing usually when I > install these to > change this to spaces, but I doubt if too many people would > care of this. > > > Personally I think any MPASM code posted here should > be run thru ASPIC_FIX > > first, although I may be a tad partial. > > Also if people would use vim with softtabstop set a > pressing two chars > ('=G') while the cursor is in the beginning of the > file would do the trick. > Ok, to go to the beginning of the file is also two > pressings ('1G') so i > guess altogether with 4 pressing is just too much > > > Tamas > > > On Fri, Jul 11, 2008 at 5:18 PM, Olin Lathrop > > wrote: > > > Mark Rages wrote: > > > The horizontal tab character has been in ASCII > for 40 years. Perhaps > > > it is time to upgrade your mail software. > > > > The character is well defined but its action is not. > There are no standard > > tab stops. > > > > By now people really should know not to put tab > characters in files you > > expect others to look at, especially when they are > asking them to do so as > > a > > favor. There is no way to know what tab stops are set > on someone else's > > system. Since just about any editor can translate > tabs to spaces according > > to the tab settings at the time, there is really no > excuse for this. > > > > If you insist on using some brain dead editor that > can't convert tabs to > > spaces, then you can always do it by post processing. > My freely available > > ASPIC_FIX program does that, in addition to a few > other things to make PIC > > assembler source as readable as possible. My COPYA > program has command > > line > > options for converting tabs to spaces with arbitrary > tab stops of your > > choosing. There are many other programs out there > too. > > > > Personally I think any MPASM code posted here should > be run thru ASPIC_FIX > > first, although I may be a tad partial. > > > > > > > ******************************************************************** > > Embed Inc, Littleton Massachusetts, > http://www.embedinc.com/products > > (978) 742-9014. Gold level PIC consultants since > 2000. > > -- > > http://www.piclist.com PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > > > -- > Rudonix DoubleSaver > http://www.rudonix.com > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist