From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DMARC_NONE, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=4.0.0 Received: from bashful.cdf.toronto.edu (bashful.cdf.toronto.edu [128.100.31.157]) by chiba.3jane.net (Postfix) with ESMTP id 44C86AC3AD for ; Sat, 27 Apr 2002 22:38:21 -0500 (CDT) Received: by bashful.cdf.toronto.edu (Postfix, from userid 191) id C001A4017D6; Sat, 27 Apr 2002 23:38:11 -0400 (EDT) To: gentoo-dev@gentoo.org From: Arcady Genkin Subject: Re: [gentoo-dev] Ebuild indentation (tabs vs. spaces) fascism ;^) References: <87elh07pmy.fsf@tea.thpoon.com> <1019957777.6580.6.camel@kodiak.chronospace.org> X-Face: 0=A/O5-+sE[Tf%X>rYr?Y5LD4,:^'jaJ!4jC&UR*ZrrK2>^`g22Qeb]!:d;}2YJ|Hq"LHdF OX`jWX|AT-WVFQ(TPhFVak)0nt$aEdlOq=1~D,:\z5QlVOrZ2(H,mKg=Xr|'VlHA="r Date: Sat, 27 Apr 2002 23:38:11 -0400 In-Reply-To: <1019957777.6580.6.camel@kodiak.chronospace.org> ("Bruce A. Locke"'s message of "27 Apr 2002 21:36:16 -0400") Message-ID: User-Agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Common Lisp, i686-pc-linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: 9a8c4af5-7d26-4f15-9350-a4ef2a14740a X-Archives-Hash: 548d2bf8f27971f100a876b50c035b02 "Bruce A. Locke" writes: > In any decent editor you can set the number of spaces a tab corresponds > to on the screen. If tabs in your editor are creating too much > whitespace for your taste on your screen, its configurable. And because > you used tabs, anyone can tell their editor how many spaces to display > and if they use tabs then its all left up to how the editor displays it. > > Also which would you prefer to do: hit space a few times to make sure > your new line is lined up with the old ones, or hit > tab once and be done with it. Just as easily any decent editor can be configured to not use tab characters, and insert 4 spaces when you hit TAB once (or to translate all tab chars into spaces when saving the file). The advantage of using spaces is that it also works well in *any* editor with *default* configuration, works with the pagers like "less" or "more", and even with "cat". Of course, you can, possibly, configure your terminal emulator to interpret TAB character as 4 spaces, but that's already not trivial to do. I find that I often use emacs and vi interchangeably, depending on the task at hand. Furthermore, sometimes I use them from my usual (non-privileged) account, and sometimes---as root. On top of this, I do it on more than one machines, that don't share home directories. If the indentation were all-spaces, I could just fire up any editor, without thinking twice what machine I'm logged in to, and see the ebuild exactly the way it was intended to be seen, as well as be able to edit it likewise. This all goes to hell if using tabs, unless I pre-configure my VI, emacsen and terminals for every possible combination of machines and accounts. > I used to be anti-tab myself... Then overtime as I started using decent > editors (vim, emacs, etc) I realized how much of a pain space indenting > was and went back and have converted all my old ebuilds to using tabs. Interesting, why was it a pain with good editors? I have switched to using all spaces years ago, when I saw what a piece of my tabbed code looked like in somebody else's terminal, and never looked back. > whats more fascist... forcing me to deal with "hardcode" spaces > forcing me to have my terminal X columns wide, or leaving it to the > enduser to configure their editor to display it with the number of > spaces they like ;) Okay, you are not really serious, right? It's quite reasonable to assume that your terminal is at least 80 columns wide. Besides, the adjustment you mention won't really work all of the time. -- Arcady Genkin