Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 78678 invoked from network); 12 Nov 2003 01:20:56 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Nov 2003 01:20:56 -0000 Received: (qmail 98908 invoked by uid 500); 12 Nov 2003 01:20:37 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 98859 invoked by uid 500); 12 Nov 2003 01:20:37 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 98846 invoked from network); 12 Nov 2003 01:20:36 -0000 Received: from unknown (HELO sati.virbus.de) (145.253.246.81) by daedalus.apache.org with SMTP; 12 Nov 2003 01:20:36 -0000 Received: from sati.virbus.de (localhost [127.0.0.1]) by localhost (SMTP Server) with ESMTP id EC562166AAE for ; Wed, 12 Nov 2003 02:20:43 +0100 (MET) Received: from virbus.de (a183069.studnetz.uni-leipzig.de [139.18.183.69]) by sati.virbus.de (SMTP Server) with ESMTP id 52443166A94 for ; Wed, 12 Nov 2003 02:20:43 +0100 (MET) Message-ID: <3FB18B1D.3090204@virbus.de> Date: Wed, 12 Nov 2003 02:21:33 +0100 From: Joerg Heinicke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: de-de, de, en-us, en-gb, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: whitespace cleanup and efficiency drive References: <1068439948.19378.8025.camel@ighp> In-Reply-To: <1068439948.19378.8025.camel@ighp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The result of this thread: let's care only about white spaces. It's my opinion too. But the editor should do this automatically, not by running a task by hand. IDEA does it pretty good: Removes trailing spaces when saving a file, replaces existing tabs with spaces on save, when using the key TAB it adds spaces to the file. But unfortunately IDEA is not for free. The editors I use at the moment are Eclipse and jEdit. Both can insert spaces instead of TAB when using the key. But both do not handle the other two things. And even worse for XML with Eclipse and SunBow: it does not even handle the TAB => spaces issue. Even if this leads not to additional results my conclusion: Having the right tools we would not have such problems. Joerg On 10.11.2003 05:52, David Crossley wrote: > It might sound pedantic, but it is about efficiency. > > I have wasted a lot of time during my committer life with > confusing patches that contain mainly whitespace changes. > Not to criticise the patcher or their tools, but today > was a classic. With some manual tweaks to whitespace, > i managed to bring one diff down from 450 lines to 120 lines. > > What caused this grief? Well the files in cvs had inconsistent > whitespace, most indentations were 4-space, some were 3-space, > some line of text had two spaces between words rather than one, > and other spurious issues. Now when the developer edited that > file, their text editor must have tried to fix the whitespace, > but in many cases made it worse. > > Therefore the diff was full of clutter. If i had committed > it then no-one would have been able to review the changes. > It would look like almost every line had changed. Also the cvs > files would have been in a worse state and then perpetuate it. > > I suppose that it is a dream, but does anybody know about a > tool that would automatically apply say 4-space indentation > and whitespace clean up? We could apply that to our whole > cvs say once per month. > > --David