From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: tabs v spaces in Emacs's source files Date: Fri, 7 Mar 2008 12:18:32 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204888798 6162 80.91.229.12 (7 Mar 2008 11:19:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2008 11:19:58 +0000 (UTC) Cc: Glenn Morris , emacs-devel@gnu.org To: "Andreas Schwab" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 07 12:20:25 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 1JXacd-0003TZ-Dr for ged-emacs-devel@m.gmane.org; Fri, 07 Mar 2008 12:20:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXac5-00070R-TF for ged-emacs-devel@m.gmane.org; Fri, 07 Mar 2008 06:19:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXaaz-0006gv-MQ for emacs-devel@gnu.org; Fri, 07 Mar 2008 06:18:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXaax-0006gK-Cp for emacs-devel@gnu.org; Fri, 07 Mar 2008 06:18:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXaaw-0006gB-Ox for emacs-devel@gnu.org; Fri, 07 Mar 2008 06:18:35 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JXaaw-0000xL-45 for emacs-devel@gnu.org; Fri, 07 Mar 2008 06:18:34 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so489391wah.10 for ; Fri, 07 Mar 2008 03:18:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=sm3PeiTy2yrZ//BsFF9D6oIq5Bj7gVeAEfxR3eVW2eE=; b=en6TpDtkhnyQAtO1x6SwNLLedQct1oD2Emw1UFCmdH4HPCDHoEfv9e7t3F6vq/4VMgj5MJI2A3AIPUXAGSOkuRRuyVQNpvGGYEOzgjrY0OVxs8oN2OWrVyznXLRsSnDQC4xjc8JBwaYXzbJeI8+SiKTbB02fBnn+adTusZfx4kE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YNFReANReeGbnga78uT6fI1TpeoKrSTb7386/3MC6obU6mhIrdgftbzwlhnNHLlJxiI29kSmY29QPVxBa1w0vj491CR3QPLhb/HOtcYQy6pZLcaaUYQd42iTYZSu5fy4veNrekn47R/pTV3b8v87b3lj5vbyUVBo0ebWlvCLBqs= Original-Received: by 10.114.179.1 with SMTP id b1mr164328waf.42.1204888712809; Fri, 07 Mar 2008 03:18:32 -0800 (PST) Original-Received: by 10.114.166.20 with HTTP; Fri, 7 Mar 2008 03:18:32 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 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:91625 Archived-At: On Fri, Mar 7, 2008 at 11:19 AM, Andreas Schwab wrote: > The Emacs source should generally follow the GNU Coding Standards > . Where does it say whether to use tabs or spaces? (I never seem to find that section.) Whatever the coding guidelines says, an extremely informal count suggests that of the non-empty lines with start with an indentation >= 8, about 8% of them use spaces in C code, and about 16% use spaces in elisp code. So tab use is most common, but there are enough spaces (we're talking literaly about tens of thousands of lines) to suggest that Miles is right: it doesn't really matter... Juanma