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 4461C429E3B for ; Tue, 17 Jan 2012 09:38:53 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 p+oOQDImEQt0 for ; Tue, 17 Jan 2012 09:38:52 -0800 (PST) Received: from dmz-mailsec-scanner-4.mit.edu (DMZ-MAILSEC-SCANNER-4.MIT.EDU [18.9.25.15]) by olra.theworths.org (Postfix) with ESMTP id AEC7A429E2E for ; Tue, 17 Jan 2012 09:38:52 -0800 (PST) X-AuditID: 1209190f-b7f8a6d000000914-4c-4f15b22c9b3e Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP id D7.98.02324.C22B51F4; Tue, 17 Jan 2012 12:38:52 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id q0HHcpF4004162; Tue, 17 Jan 2012 12:38:51 -0500 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q0HHcnZk018701 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Tue, 17 Jan 2012 12:38:50 -0500 (EST) Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77) (envelope-from ) id 1RnCzW-0007va-DL; Tue, 17 Jan 2012 12:38:38 -0500 Date: Tue, 17 Jan 2012 12:38:38 -0500 From: Austin Clements To: Tomi Ollila Subject: Re: [PATCH 2/3] emacs: whitespace-cleanup and indent-region for emacs/*.el files Message-ID: <20120117173838.GN16740@mit.edu> References: <1326704656-26102-1-git-send-email-tomi.ollila@iki.fi> <1326704656-26102-2-git-send-email-tomi.ollila@iki.fi> <20120117043200.GJ16740@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnleLIzCtJLcpLzFFi42IRYrdT19XZJOpvsOU5q8X1mzOZLd6snMfq wORx+OtCFo9nq24xBzBFcdmkpOZklqUW6dslcGU8aF3NWnCRr+L3k5NsDYz3ubsYOTkkBEwk 1t/fzQ5hi0lcuLeeDcQWEtjHKLF4M18XIxeQvYFR4svzXiYI5ySTxJRz91ggnCWMEtdmTgdr ZxFQlWj+eR3MZhPQkNi2fzkjiC0ioCLxoG09K4jNLCAt8e13MxOILSwQLdHV/4AZxOYV0JF4 8fkyM8TQT4wSG3bsY4NICEqcnPmEBaJZS+LGv5dAzRxgg5b/4wAxOYF6dzxzBakQBVo15eQ2 tgmMQrOQNM9C0jwLoXkBI/MqRtmU3Crd3MTMnOLUZN3i5MS8vNQiXRO93MwSvdSU0k2MoLDm lOTfwfjtoNIhRgEORiUe3pveIv5CrIllxZW5hxglOZiURHm514r6C/El5adUZiQWZ8QXleak Fh9ilOBgVhLhzU0DyvGmJFZWpRblw6SkOViUxHnVtN75CQmkJ5akZqemFqQWwWRlODiUJHhb NgI1ChalpqdWpGXmlCCkmTg4QYbzAA2vBKnhLS5IzC3OTIfIn2LU5Ti59so5RiGWvPy8VClx 3iyQIgGQoozSPLg5sHT0ilEc6C1hXkeQKh5gKoOb9ApoCRPQkpxWIZAlJYkIKakGRkWGOVO1 q06fjRJ6Wn9a7IJeSELf0lUxYtuOuuwqVv5YNHNm+aljsrdc9HU8jWadF080M7kQ6Pyg6+YU 9runcrym+6w75pz6SmyqsmjgiQUpaj5/uu+yBPkwRrdKbotSEf5Ty/eJy+xNcP/+93+fHi25 2M3Anq2WEZG6eAmbt8/qa3fehAdlK7EUZyQaajEXFScCAHcutMsiAwAA Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2012 17:38:53 -0000 Quoth Tomi Ollila on Jan 17 at 12:46 pm: > On Mon, 16 Jan 2012 23:32:00 -0500, Austin Clements wrote: > > Cleanup is the type of pain that should only be suffered once, so I'd > > be much happier with this if there was an accompanying git hook that > > prevented more mis-formatted code from slipping in. > > We'd need a script to be called from .git/hooks/pre-commit to do > extra checking; developer needs first activate this pre-commit > and then add call to our checking routine. Imagine the amount > of false positives this hook starts to generate... It's unfortunate (but sensible) that git doesn't provide an automatic way to set up verify scripts like this, but that doesn't mean we can't make it easy. Put a script in devel (or whatever it winds up being called) that can be sourced from the pre-commit hook and then mention this in HACKING. Why it would generate false positives, assuming the cleanup goes in at the same time the hook goes in (or the script is somehow clever enough to only check changed lines)? > ... but. developer can run 'git commit --no-verify' ...aargh no; > I guess if pre-commit hook fails, commit-msg hook is not run > and this is bypassed; maybe NO_FORMATCHECK_HOOK=1 git commit ... > is the answer. Maybe the script could generate a warning/prompt, rather than preventing the commit altogether? > But what we at least need is Guidelines document that states > these formatting issues clearly and precicely. Surely > self-respecting programmers understands to follow there (and soon > adjusts their workflow -- i.e. activate/run these checkers > after list response). I think the guidelines for elisp are pretty well known. I agree that we need such a document for the C/C++ code. I started writing one a while ago, but other things took over before I got very far.