From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: tabs v spaces in Emacs's source files Date: Sat, 08 Mar 2008 14:58:28 +0200 Message-ID: References: <8763vympbr.fsf@red-bean.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1204981126 1754 80.91.229.12 (8 Mar 2008 12:58:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Mar 2008 12:58:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: Karl Fogel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 08 13:59:12 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JXydr-0003UY-EQ for ged-emacs-devel@m.gmane.org; Sat, 08 Mar 2008 13:59:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXydJ-0004GL-Gu for ged-emacs-devel@m.gmane.org; Sat, 08 Mar 2008 07:58:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXydF-0004El-9U for emacs-devel@gnu.org; Sat, 08 Mar 2008 07:58:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXydD-0004E7-MV for emacs-devel@gnu.org; Sat, 08 Mar 2008 07:58:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXydD-0004E4-GT for emacs-devel@gnu.org; Sat, 08 Mar 2008 07:58:31 -0500 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JXydD-00088a-05 for emacs-devel@gnu.org; Sat, 08 Mar 2008 07:58:31 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-196-141.inter.net.il [83.130.196.141]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id KMW00433 (AUTH halo1); Sat, 8 Mar 2008 14:58:10 +0200 (IST) In-reply-to: <8763vympbr.fsf@red-bean.com> (message from Karl Fogel on Fri, 07 Mar 2008 12:11:36 -0500) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:91717 Archived-At: > From: Karl Fogel > Date: Fri, 07 Mar 2008 12:11:36 -0500 > Cc: emacs-devel@gnu.org > > "Juanma Barranquero" writes: > > But anyway, the point is that there's a lot of code using spaces. If > > there's a real interest in using only tabs, I'd suggest start adding > > indent-tabs-mode cookies to local variables sections. > > I very much prefer spaces, because they're diff-safe (for example, in > commit emails). Whatever people prefer, we should IMO use a consistent indentation rules in Emacs. Personally, I prefer the Emacs defaults, but if the head maintainers prefer a different scheme, I will not object. In any case, the current situation of inconsistent use of spaces and TABs is IMO much worse than any of the consistent alternatives. AFAIU, the GNU Coding Standards call for consistency wrt issues of style: The rest of this section gives our recommendations for other aspects of C formatting style, which is also the default style of the `indent' program in version 1.2 and newer. It corresponds to the options -nbad -bap -nbc -bbo -bl -bli2 -bls -ncdb -nce -cp1 -cs -di2 -ndj -nfc1 -nfca -hnl -i2 -ip5 -lp -pcs -psl -nsc -nsob We don't think of these recommendations as requirements, because it causes no problems for users if two different programs have different formatting styles. But whatever style you use, please use it consistently, since a mixture of styles within one program tends to look ugly. If you are contributing changes to an existing program, please follow the style of that program.