Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D37D84045F7 for ; Fri, 13 Jan 2012 14:09:57 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.463 X-Spam-Level: X-Spam-Status: No, score=0.463 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, RDNS_DYNAMIC=0.363] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xGpLPDJDiS2u for ; Fri, 13 Jan 2012 14:09:57 -0800 (PST) Received: from xhlj.maillard.im (cha51-3-88-164-105-66.fbx.proxad.net [88.164.105.66]) by olra.theworths.org (Postfix) with ESMTP id 121714045E2 for ; Fri, 13 Jan 2012 14:09:57 -0800 (PST) Received: from xhlj.maillard.im (xhlj.maillard.im [127.0.0.1]) by xhlj.maillard.im (Postfix) with ESMTP id 77CAF2161E; Fri, 13 Jan 2012 23:09:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=maillard.im; h=from:to:cc :subject:in-reply-to:references:reply-to:date:message-id :mime-version:content-type; s=postfix; bh=g8xqZLx8XDoHxtZGKOVqia p3+18=; b=IzssABbF+NPtQWNc8TTOs8nP6h6cHf5Y3q9hYgpWmHRpHqXnNxlV64 35H71aqBz0TO0WJd/PHgunoMTe5dC9Mmu7ZPvqoTKowHlzNCbhXBaUrxMg6oCHpW v2Yj28rhXr2TYuzQ/LR9sutvGjkfHW5etYSkCDFOukeDl/lZyjiPo= Received: from maillard.im (cha51-3-88-164-105-66.fbx.proxad.net [88.164.105.66]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by xhlj.maillard.im (Postfix) with ESMTPSA; Fri, 13 Jan 2012 23:09:54 +0100 (CET) From: Xavier Maillard To: Tomi Ollila Subject: Re: [PATCH] emacs: whitespace-cleanup for emacs/*.el files In-Reply-To: References: <1326294815-31926-1-git-send-email-tomi.ollila@iki.fi> User-Agent: Notmuch/0.10.1 (http://notmuchmail.org) Emacs/23.2.1 (i486-slackware-linux-gnu) Date: Fri, 13 Jan 2012 23:27:11 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Xavier Maillard List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2012 22:09:58 -0000 On Fri, 13 Jan 2012 11:50:52 +0200, Tomi Ollila wrote: > On Fri, 13 Jan 2012 08:22:49 +0000, David Edmondson wrote: > > On Thu, 12 Jan 2012 23:07:03 +0100, Xavier Maillard wrote: > > > On Wed, 11 Jan 2012 17:13:35 +0200, Tomi Ollila wrote: > > > > Executed > > > > for f in emacs/*.el > > > > do emacs -q --batch --eval \ > > > > "(progn (find-file \"$f\") (whitespace-cleanup) (save-buffer))" > > > > done > > > > > > > > which > > > > removed trailing whitespace and empty lines at the end of file > > > > removed spaces before tab (if any) > > > > converted 8 spaces to tabs in the beginning of line > > > > > > +1 > > > > > > Maybe we should note something about this as a /coding style/ rule ? > > > > How about "Running `indent-region' over the file should produce no > > changes" as well? > > So, In addition to 'uncrustify.cfg' we need emacs reformatter along lines: What about doing all of this directly in .dir-locals.el (could be considered unsafe though to add an EVAL block). /Xavier