From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <vitaly_kushneriuk@yahoo.com>
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org
X-Spam-Level: **
X-Spam-Status: No, score=2.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED,
	DMARC_REJECT,FORGED_YAHOO_RCVD,FREEMAIL_FROM,MAILING_LIST_MULTI,
	NICE_REPLY_A,RDNS_NONE,SPOOFED_FREEMAIL_NO_RDNS autolearn=no
	autolearn_force=no version=4.0.0
Received: from uranus.u235.eyep.net (unknown [194.90.113.98])
	by chiba.3jane.net (Postfix) with SMTP id 16574AC4E1
	for <gentoo-dev@gentoo.org>; Mon, 29 Apr 2002 10:35:24 -0500 (CDT)
Received: (qmail 11161 invoked by uid 1000); 29 Apr 2002 15:39:00 -0000
Subject: Re: [gentoo-dev] Ebuild indentation (tabs vs. spaces) fascism ;^)
From: Vitaly Kushneriuk <vitaly_kushneriuk@yahoo.com>
To: gentoo-dev@gentoo.org
In-Reply-To: <200204291700.39857.styx@SuxOS.org>
References: <87elh07pmy.fsf@tea.thpoon.com>
	<20020429140831.54f6633e.spider@gentoo.org> <3CCD3BDD.9020503@gentoo.org> 
	<200204291700.39857.styx@SuxOS.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.3 
Date: 29 Apr 2002 18:39:00 +0300
Message-Id: <1020094740.10721.1.camel@uranus.u235.eyep.net>
Mime-Version: 1.0
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: <mailto:gentoo-dev-request@gentoo.org?subject=help>
List-Post: <mailto:gentoo-dev@gentoo.org>
List-Subscribe: <http://lists.gentoo.org/mailman/listinfo/gentoo-dev>,
	<mailto:gentoo-dev-request@gentoo.org?subject=subscribe>
List-Id: Gentoo Linux developer list <gentoo-dev.gentoo.org>
List-Unsubscribe: <http://lists.gentoo.org/mailman/listinfo/gentoo-dev>,
	<mailto:gentoo-dev-request@gentoo.org?subject=unsubscribe>
List-Archive: <http://lists.gentoo.org/pipermail/gentoo-dev/>
X-Archives-Salt: 2aaa94ff-a2d0-463b-9287-e116612ffd7d
X-Archives-Hash: 6239ed08e5c44eba1dd049cf48cf7a27

On Mon, 2002-04-29 at 20:00, Joachim Blaabjerg wrote:
> 
> Spider wrote:
> > now, Does anyone know how to make gpm transfer tabs/spaces ok instead of
> > converting all my tabs to spaces? or failing gpm working, getting vim to
> > notice gpm broken paste and convert and align nicely?
> 
> I don't know how that would be done, and I agree with mr. McArthur that it is 
> unlikely to happen. However, you could always use an sed ugly hack once in a 
> while to convert tabs to spaces.
> 
> sed s/"\t"/\ \ \ \ /g source-tabs.c > source-spaces.c
> 
> It works here, but I realise it's _far_ from a solution (and ugly as hell). 
> Just replace the number of escaped spaces to suit your needs.
This will be _very_ ugly for tabs that are not at the beginning of the
line. i.e. when tab should expand to a _less_ then 8/4 spaces, as it
starts not at a tabstop position.