From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: ** X-Spam-Status: No, score=2.4 required=5.0 tests=DATE_IN_PAST_12_24,DMARC_NONE, INVALID_DATE,MAILING_LIST_MULTI,RDNS_NONE autolearn=no autolearn_force=no version=4.0.0 Received: from [62.67.104.55] (helo=columbus.localdomain) by cvs.gentoo.org with esmtp (Exim 3.30 #1) id 162y2Z-0000Wn-00 for gentoo-dev@cvs.gentoo.org; Sun, 11 Nov 2001 10:05:03 -0700 Received: by columbus.localdomain (Postfix, from userid 501) id 8BF922041C; Sun, 11 Nov 2001 15:24:39 +0100 (CET) To: gentoo-dev@cvs.gentoo.org References: <20011110112442.E16660@cvs.gentoo.org> <20011110153913.A62188@plato.zk3.dec.com> <20011110140446.F16660@cvs.gentoo.org> <1005481622.24118.0.camel@fry> X-Attribution: AV From: Andreas Voegele In-Reply-To: <1005481622.24118.0.camel@fry> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [gentoo-dev] Re: All Developers! Sender: gentoo-dev-admin@cvs.gentoo.org Errors-To: gentoo-dev-admin@cvs.gentoo.org X-BeenThere: gentoo-dev@cvs.gentoo.org X-Mailman-Version: 2.0 Precedence: bulk Reply-To: gentoo-dev@cvs.gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux development list List-Unsubscribe: , List-Archive: Date: Sun Nov 11 10:06:01 2001 X-Original-Date: 11 Nov 2001 15:24:39 +0100 X-Archives-Salt: 43261377-947e-4864-8139-84f3d2e3004f X-Archives-Hash: 9c9e873fed46189c9f3153f3f256eda2 Mikael Hallendal writes: > Hmm .. imho it's much easier to read with the \ aligned. I disagree. I don't like aligned / (or, for example, aligned variables in C programs) very much. If you insert a new line that is longer than the existing lines you might have to reformat the other lines too. If you commit your changes to the CVS and look at the changes with "cvs diff" not only the newly inserted line but also all the reformatted lines are displayed which is really annoying. For example, if you have these lines: ./configure --host=${CHOST} \ --prefix=/usr \ --mandir=/usr/share/man Now you add two new, very long options: ./configure --host=${CHOST} \ --prefix=/usr \ --mandir=/usr/share/man \ --with-openssl-include=/usr/include/openssl \ --with-openssl-libraries=/usr/lib/openssl Because of the alignment more lines than really necessary have to be changed, which clutters the output of "cvs diff". > I think we can do this by supplying a emacs/vi-mode for editing > ebuilds. Those modes should be strict and force the developer to do > it right. Hm, it's easier to base the ebuild mode on Emacsen's sh-mode than to write a new mode from scratch. But sh-mode doesn't allow tabs at the end of lines; and I don't know if it is possible to change the mode's behaviour easily. After looking at Emacsen's sh-mode, I think that the following style, that uses tabs at the beginning of lines and neither tabs nor spaces at the end of lines, would be the easiest style to implement: ./configure --host=${CHOST} \ --prefix=/usr \ --mandir=/usr/share/man