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 D4E0A429E25 for ; Fri, 18 Nov 2011 00:55:35 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 uD5e73Qt98HY for ; Fri, 18 Nov 2011 00:55:35 -0800 (PST) Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id E2F10429E21 for ; Fri, 18 Nov 2011 00:55:34 -0800 (PST) Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31]) by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pAI8tUQ5009214; Fri, 18 Nov 2011 10:55:31 +0200 From: Tomi Ollila To: Dmitry Kurochkin , notmuch@notmuchmail.org Subject: Re: [PATCH 0/9] test: (hopefully) better test prerequisites In-Reply-To: <87zkfun5hf.fsf@gmail.com> References: <1321494986-18998-1-git-send-email-dmitry.kurochkin@gmail.com> <874ny36rhc.fsf@servo.finestructure.net> <8739dmopcu.fsf@gmail.com> <87zkfun5hf.fsf@gmail.com> User-Agent: Notmuch/0.9+73~ged20210 (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Fri, 18 Nov 2011 08:55:36 -0000 On Thu, 17 Nov 2011 19:17:16 +0400, Dmitry Kurochkin wrote: > > If we follow this pattern than all code like: > > f() { > if (!done_once) > do_once > > do_more > } > > Should be rewritten using dynamic functions. I do not think I agree with > this :) > > Anyway, all above is just IMHO. You should probably go ahead and > prepare a patch implementing this approach for others to review. I probably won't. While I was looking something in your patch and I was thinking how to fix I just got this idea and wrote it to see whether other's see as I do. The discussion got a bit side-tracked as I just look this tiny part of the whole. Your later patch looks more understandable than the previous (which emacs || emacs || return) and it is something I can live with :) -- Just for now I'm not going to work on the whole anyway. > > Regards, > Dmitry > Thanks, Tomi