1 Return-Path: <pieter@praet.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 6973B429E50
\r
6 for <notmuch@notmuchmail.org>; Sat, 14 Jan 2012 01:54:16 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id Z4mhwjyqSOcn for <notmuch@notmuchmail.org>;
\r
16 Sat, 14 Jan 2012 01:54:15 -0800 (PST)
\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com
\r
18 [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
19 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
20 A7F97429E4E for <notmuch@notmuchmail.org>; Sat, 14 Jan 2012 01:54:15 -0800
\r
22 Received: by wgbds11 with SMTP id ds11so3550447wgb.2
\r
23 for <notmuch@notmuchmail.org>; Sat, 14 Jan 2012 01:54:14 -0800 (PST)
\r
24 Received: by 10.180.99.232 with SMTP id et8mr2258473wib.8.1326534854577;
\r
25 Sat, 14 Jan 2012 01:54:14 -0800 (PST)
\r
26 Received: from localhost ([109.131.75.86]) by mx.google.com with ESMTPS id
\r
27 fo18sm14268495wbb.12.2012.01.14.01.54.13
\r
28 (version=TLSv1/SSLv3 cipher=OTHER);
\r
29 Sat, 14 Jan 2012 01:54:14 -0800 (PST)
\r
30 From: Pieter Praet <pieter@praet.org>
\r
31 To: David Edmondson <dme@dme.org>, Jani Nikula <jani@nikula.org>
\r
32 Subject: Re: [PATCH] emacs: globally replace non-branching "(if (not ..." with
\r
34 In-Reply-To: <87k44uprvy.fsf@praet.org>
\r
35 References: <87vcogketu.fsf@praet.org>
\r
36 <1326389586-21683-1-git-send-email-pieter@praet.org>
\r
37 <cunobu8huxw.fsf@hotblack-desiato.hh.sledj.net>
\r
38 <87k44uprvy.fsf@praet.org>
\r
39 User-Agent: Notmuch/0.10.2+115~gadd29f6 (http://notmuchmail.org) Emacs/23.3.1
\r
40 (x86_64-unknown-linux-gnu)
\r
41 Date: Sat, 14 Jan 2012 10:52:27 +0100
\r
42 Message-ID: <8762gepq5g.fsf@praet.org>
\r
44 Content-Type: text/plain; charset=us-ascii
\r
45 Cc: Notmuch Mail <notmuch@notmuchmail.org>
\r
46 X-BeenThere: notmuch@notmuchmail.org
\r
47 X-Mailman-Version: 2.1.13
\r
49 List-Id: "Use and development of the notmuch mail system."
\r
50 <notmuch.notmuchmail.org>
\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
54 List-Post: <mailto:notmuch@notmuchmail.org>
\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
58 X-List-Received-Date: Sat, 14 Jan 2012 09:54:16 -0000
\r
60 On Sat, 14 Jan 2012 10:14:57 +0100, Pieter Praet <pieter@praet.org> wrote:
\r
61 > On Fri, 13 Jan 2012 08:23:55 +0000, David Edmondson <dme@dme.org> wrote:
\r
62 > > On Thu, 12 Jan 2012 18:33:06 +0100, Pieter Praet <pieter@praet.org> wrote:
\r
63 > > > Less code, same results, without sacrificing readability.
\r
65 > > +1, but why not replace non-branching `if' with `when' as well?
\r
67 > I was planning to do that when the `unless' patch was accepted,
\r
71 > but after reading Xavier and Tomi's replies, I've changed my mind.
\r
72 ^^^^^^^^^^^^^^^^^^^^
\r
76 > Looking at "subr.el", it's actually more efficient to use `if'
\r
77 > (implemented in C) instead of `when' (a macro, which essentially
\r
78 > runs "if conf (progn ...)".
\r
80 > The amount of non-branching "(if COND (progn ..." statements is very
\r
81 > limited though, so if inclined to "fix" them nonetheless, a patch
\r
82 > follows (relative to the previous one!).
\r