From owner-freebsd-doc Wed Aug 9 11:50: 9 2000 Delivered-To: freebsd-doc@freebsd.org Received: from msgbas1x.cos.agilent.com (msgbas1x.cos.agilent.com [192.6.9.33]) by hub.freebsd.org (Postfix) with ESMTP id 5DCF137BBF3; Wed, 9 Aug 2000 11:50:01 -0700 (PDT) (envelope-from darrylo@soco.agilent.com) Received: from andom1.an.hp.com (andom1.an.hp.com [15.4.128.104]) by msgbas1x.cos.agilent.com (Postfix) with ESMTP id 981A2125; Wed, 9 Aug 2000 12:49:55 -0600 (MDT) Received: from mina.soco.agilent.com (mina.soco.agilent.com [141.121.54.157]) by andom1.an.hp.com (Postfix) with ESMTP id D4D1883; Wed, 9 Aug 2000 14:49:53 -0400 (EDT) Received: from mina.soco.agilent.com (darrylo@localhost [127.0.0.1]) by mina.soco.agilent.com (8.9.3 (PHNE_18979)/8.9.3 SMKit7.0) with ESMTP id LAA01748; Wed, 9 Aug 2000 11:49:52 -0700 (PDT) Message-Id: <200008091849.LAA01748@mina.soco.agilent.com> To: Neil Blakey-Milner Cc: Udo Erdelhoff , Ben Smithurst , freebsd-doc@FreeBSD.ORG Subject: Re: TAB vs 8. Spaces (was Re: cvs commit: doc/en_US.ISO_8859-1/books/faq book.sgml) Reply-To: Darryl Okahata In-Reply-To: Your message of "Wed, 09 Aug 2000 20:17:12 +0200." <20000809201712.B30032@mithrandr.moria.org> Mime-Version: 1.0 (generated by tm-edit 1.5) Content-Type: text/plain; charset=US-ASCII Date: Wed, 09 Aug 2000 11:49:51 -0700 From: Darryl Okahata Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > On Wed 2000-08-09 (19:11), Udo Erdelhoff wrote: > > The size of the diff worried me. The main reason is the amount of > > TABs in revision 1.87. The FDP Primer demands spaces for indentation > > and my tool sticks to that rule. Here, "cvs diff -b" is your friend ("-b" ignores whitespace differences). I'll let others speak on the validity of using tabs vs. spaces. > > What's the general opinion about using TABs as a shortcut for indentation? > > It's spaces until you fill a tab, then it's a tab. > > 2 spaces, 4 spaces, 6 spaces, tab, tab and 2 spaces, tab and 4 spaces, > tab and 6 spaces, 2 tabs, 2 tabs and 2 spaces. Yes, this is the (correct) rule, unlike various horribly broken PC editors and IDEs. A tab character is supposed to go to the next 8-character column boundary. > Actually, I'm not at all sure if emacs does it this way. Vim does, > though. Emacs does it this way by default. You can also tell Emacs to use only spaces (no tabs), though. -- Darryl Okahata darrylo@soco.agilent.com DISCLAIMER: this message is the author's personal opinion and does not constitute the support, opinion, or policy of Agilent Technologies, or of the little green men that have been following him all day. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message