From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1S34pb-00034k-HK for mharc-grub-devel@gnu.org; Thu, 01 Mar 2012 07:09:59 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S34pZ-00034d-3F for grub-devel@gnu.org; Thu, 01 Mar 2012 07:09:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S34pS-0008Ju-T9 for grub-devel@gnu.org; Thu, 01 Mar 2012 07:09:56 -0500 Received: from wp191.webpack.hosteurope.de ([80.237.132.198]:34131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S34pS-0008JJ-LZ for grub-devel@gnu.org; Thu, 01 Mar 2012 07:09:50 -0500 Received: from p54ba6680.dip.t-dialin.net ([84.186.102.128] helo=neptun.omega.ssw.de); authenticated by wp191.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) id 1S34pP-0000bD-H6; Thu, 01 Mar 2012 13:09:47 +0100 Received: from localhost (localhost [127.0.0.1]) by neptun.omega.ssw.de (Postfix) with ESMTP id B08BCE180A8 for ; Thu, 1 Mar 2012 13:09:46 +0100 (CET) X-Virus-Scanned: amavisd-new at omega.ssw.de Received: from neptun.omega.ssw.de ([127.0.0.1]) by localhost (neptun.omega.ssw.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ayps5d5yDJpY for ; Thu, 1 Mar 2012 13:09:36 +0100 (CET) Received: from [192.168.2.43] (p640.fritz.box [192.168.2.43]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by neptun.omega.ssw.de (Postfix) with ESMTP id 04247E180A7 for ; Thu, 1 Mar 2012 13:09:35 +0100 (CET) Message-ID: <4F4F6704.6090203@anvo-it.de> Date: Thu, 01 Mar 2012 13:09:40 +0100 From: Andreas Vogel User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: The development of GNU GRUB Subject: [Q] Indentation rules for GRUB source code X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de; andreas.vogel@anvo-it.de; 1330603790; 8c16bd8d; X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.237.132.198 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Mar 2012 12:09:58 -0000 I tried to find all relevant docs and read what I've found (e.g. grub-dev.texi), so please excuse me if this questions has been already answered somewhere. I would like to change and submit code for GRUB and from what i see right now indentation of the code doesn't seem to follow any rules. Most of the time the visible indentation is 2 spaces which is either achieved by using a TAB (which needs that the editor is configured to show TABs as 2 spaces) or it's done by just using 2 spaces. Regarding to what code I've seen until now, the indentation of quite a lot of code is messed up and makes reading more difficult. What are the preferred rules to follow when submitting changes or new code regarding indentation? BTW, it might be a good idea to propose the TAB setting configurations for the most popular editors, e.g. I'm using vim right now. Andreas