From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?= Newsgroups: gmane.emacs.devel Subject: Re: Whitespace cleanup Date: Wed, 22 Aug 2012 15:02:53 -0400 Message-ID: References: <68445DF4308F4FAC963D6B6875A4EDD3@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1345662192 22362 80.91.229.3 (22 Aug 2012 19:03:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2012 19:03:12 +0000 (UTC) Cc: Emacs development discussions To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 22 21:03:13 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T4GCq-0007SX-H9 for ged-emacs-devel@m.gmane.org; Wed, 22 Aug 2012 21:03:08 +0200 Original-Received: from localhost ([::1]:49612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4GCo-0007c4-KI for ged-emacs-devel@m.gmane.org; Wed, 22 Aug 2012 15:03:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4GCj-0007bh-5b for emacs-devel@gnu.org; Wed, 22 Aug 2012 15:03:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4GCc-0001Lq-Ti for emacs-devel@gnu.org; Wed, 22 Aug 2012 15:03:01 -0400 Original-Received: from mail-gh0-f169.google.com ([209.85.160.169]:40936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4GCc-0001Ll-Pe for emacs-devel@gnu.org; Wed, 22 Aug 2012 15:02:54 -0400 Original-Received: by ghrr18 with SMTP id r18so1077281ghr.0 for ; Wed, 22 Aug 2012 12:02:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Fs66x76EtrG/FbtaTARxWFGst3UyFvd4UAR1u/cqeZ0=; b=rbvi0Z6sshgggCiTbYdDj5SKEdXq/LwWrdo2Vvs7DmGQNGSFGptAyLYuoTIMBkHtM9 zfu2LXs9bEKdZFjvcQdNeY5xnA6S2r7hK9H3e6yP4deCC9jAW86uVLXhcEEpWIXye0m+ ODISCw2CEYcNHL157ao06JOMFqI4XZi1MG7WwJ2bvvbIWtGRFW5x97oumiwwWWxI/5Em v2945komrpQQz3bnkujBsIYq+X/A3nheFubS1fji+5i+WO7z6+aQeM6+qTdryqyAg+ft bGJD6mbHx6zOEs1FqdBhD4j5LcU33tNA4axA0v5CEn1MybRXg1bXQx2UGpaM77VHNAHv ayHg== Original-Received: by 10.50.51.234 with SMTP id n10mr3341303igo.74.1345662173942; Wed, 22 Aug 2012 12:02:53 -0700 (PDT) Original-Received: by 10.231.207.4 with HTTP; Wed, 22 Aug 2012 12:02:53 -0700 (PDT) In-Reply-To: <68445DF4308F4FAC963D6B6875A4EDD3@us.oracle.com> X-Google-Sender-Auth: h4Wk0UeOag4QbCcnB-RF0ofrL1Q X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152756 Archived-At: On 22 August 2012 11:44, Drew Adams wrote: > I, for one, would like to see the tabs replaced by spaces in the Lisp code that > is shipped. It's not a big deal, but I invariably find myself later cleaning up > pieces in code of mine that might have parts originally copy+yanked from vanilla > code. > > But like I say, not a big deal at all. > `C-x h M-x untabify', and you're done. That only works after you figure out what the correct tab width should have been to begin with. On 22 August 2012 12:07, Stefan Monnier wrote: > If an Elisp file requires a tab-width different from 8 to be indented > properly, that's a bug. The indentation offset is rarely 8, so I guess tabs get inserted only after 4 levels of indentation, creating a horrible mix. Can we just run M-x whitespace-cleanup on all elisp shipped by Emacs, since someone always misunderstands how to use tabs correctly? This cleanup does some additional things like removing trailing spaces. I thought the complaint against this is that we don't want to see whitespace changes in diffs, but those can be hidden now. On 22 August 2012 12:15, Glenn Morris wrote: > > Not really sure what you are proposing, but it sounds familiar... > > http://lists.gnu.org/archive/html/emacs-devel/2012-05/msg00483.html I'm proposing to not mix tabs and spaces, but since not everybody understands why this is desirable, let's just run M-x whitespace-cleanup instead. - Jordi G. H.