Gentoo Archives: gentoo-dev

From: Alec Warner <antarus@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] About how many spaces a tab represents
Date: Mon, 15 Apr 2013 19:06:22
Message-Id: CAAr7Pr-KOVmMagMBbWNqa09NRqsse7XATGjJUAE9hTCPRejskg@mail.gmail.com
In Reply to: Re: [gentoo-dev] About how many spaces a tab represents by "Aaron W. Swenson"
1 How many avocados does a tab represent?
2
3 -A
4
5
6 On Mon, Apr 15, 2013 at 4:10 AM, Aaron W. Swenson <titanofold@g.o>wrote:
7
8 > On Mon, Apr 15, 2013 at 08:15:08AM +0200, Pacho Ramos wrote:
9 > > El lun, 15-04-2013 a las 07:21 +0200, Michał Górny escribió:
10 > > > On Sun, 14 Apr 2013 23:22:04 +0200
11 > > > Pacho Ramos <pacho@g.o> wrote:
12 > > >
13 > > > > I noticed this problem now that joe was modified to comply with this
14 > > > > rule set in devmanual:
15 > > > >
16 > http://devmanual.gentoo.org/ebuild-writing/file-format/index.html#indenting-and-whitespace
17 > > > >
18 > > > > It stated a tab represents 4 spaces. Where does this rule come from?
19 > Why
20 > > > > 8 spaces wasn't chosen instead? I say that because looks like 8
21 > spaces
22 > > > > equivalence is used by tools like "cat", "less", even CVS reports in
23 > > > > gentoo-commits show tabs as 8 spaces instead of 4.
24 > > >
25 > > > Hmm, does that have implications on anything else but counting line
26 > > > width?
27 > > >
28 > >
29 > > Well, I was a bit surprised an ebuild I was thinking was looking in a
30 > > way, was really shown a bit different when, for example, simply running
31 > > less over it :/
32 > >
33 >
34 > A tab is a tab. How wide it is, is up to you. The convention is that
35 > four spaces should be replace by a tab. You can configure tab width
36 > for your terminal with:
37 >
38 > setterm -regtabs 4
39 >
40 > If you want to, that is.
41 >
42 > --
43 > Mr. Aaron W. Swenson
44 > Gentoo Linux Developer
45 > Email : titanofold@g.o
46 > GnuPG FP : 2C00 7719 4F85 FB07 A49C 0E31 5713 AA03 D1BB FDA0
47 > GnuPG ID : D1BBFDA0
48 >