--- /dev/null
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 67D0A431FC0\r
+ for <notmuch@notmuchmail.org>; Sun, 2 Sep 2012 07:48:48 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id T-7R84wQ2eN0 for <notmuch@notmuchmail.org>;\r
+ Sun, 2 Sep 2012 07:48:48 -0700 (PDT)\r
+Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com\r
+ [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id A8555431FBF\r
+ for <notmuch@notmuchmail.org>; Sun, 2 Sep 2012 07:48:47 -0700 (PDT)\r
+Received: by mail-lpp01m010-f53.google.com with SMTP id c1so3338105lah.26\r
+ for <notmuch@notmuchmail.org>; Sun, 02 Sep 2012 07:48:47 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=google.com; s=20120113;\r
+ h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references\r
+ :in-reply-to:references:x-gm-message-state;\r
+ bh=srhNgR6m9KNttd61fdfjhuS9HPCzK9o4IcNZziYJODM=;\r
+ b=U5CnLFP/1AAa+R/4ABlXljsEYtLqx1RK03CxrbS3Fn6k9GNDrIR176RJOi3VyvBZwT\r
+ CUk8muNL28UESjMxWh+82HqcCBSb7lHd6ZuGlwB1utsW8SaG0UBMAn/cHMp/AQJimuyp\r
+ Lp1IW6n0wXdCKxQ+zux59829nktEfCc8HL1FrF8qfRjUCWzcFUUBTHYLLb2UzsNJX8vI\r
+ TqJ2dsq4Kt5gP21baBTMW55JJLpMkApsHsp70mVGl5NtgmRQaYzqGKde/81FjvND8DcG\r
+ Ts90RfWsFBnq66N3uVazphv7bXPEiymaOnPsVzCPVlwBNok7e3CtNip8FNFIWKmXqxmH\r
+ KFpw==\r
+Received: by 10.152.106.233 with SMTP id gx9mr11332401lab.48.1346597327325;\r
+ Sun, 02 Sep 2012 07:48:47 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi.\r
+ [80.223.81.27])\r
+ by mx.google.com with ESMTPS id u10sm2589296lbf.11.2012.09.02.07.48.45\r
+ (version=SSLv3 cipher=OTHER); Sun, 02 Sep 2012 07:48:46 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 2/5] emacs: add no-display arg to\r
+ notmuch-hello-refresh-hook\r
+Date: Sun, 2 Sep 2012 17:48:34 +0300\r
+Message-Id:\r
+ <51214be764d0f54d0db3658e43f1377d67e34fdf.1346596156.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.9.5\r
+In-Reply-To: <cover.1346596156.git.jani@nikula.org>\r
+References: <cover.1346596156.git.jani@nikula.org>\r
+In-Reply-To: <cover.1346596156.git.jani@nikula.org>\r
+References: <cover.1346596156.git.jani@nikula.org>\r
+X-Gm-Message-State:\r
+ ALoCoQk0ssGiUU9g2ulg4ZzMK7i3WrpKbdsjWWoVl1mzC8L1tTA2vaecu9V7RMdiXtxNYNQPmeqz\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 02 Sep 2012 14:48:48 -0000\r
+\r
+Add no-display arg to notmuch-hello-refresh-hook to allow each hook to\r
+decide what is appropriate when no-display is t, i.e. when not\r
+switching to the notmuch-hello buffer.\r
+\r
+This breaks existing hooks people might have, which will now need to\r
+accept the argument.\r
+\r
+Signed-off-by: Jani Nikula <jani@nikula.org>\r
+---\r
+ emacs/notmuch-hello.el | 2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
+index 4dfe5d2..fa14443 100644\r
+--- a/emacs/notmuch-hello.el\r
++++ b/emacs/notmuch-hello.el\r
+@@ -816,7 +816,7 @@ it (i.e. use `set-buffer' rather than `switch-to-buffer')."\r
+ (unless (widget-at)\r
+ (when notmuch-hello-search-pos\r
+ (goto-char notmuch-hello-search-pos)))))\r
+- (run-hooks 'notmuch-hello-refresh-hook)\r
++ (run-hook-with-args 'notmuch-hello-refresh-hook no-display)\r
+ (setq notmuch-hello-first-run nil))\r
+ \r
+ (defun notmuch-folder ()\r
+-- \r
+1.7.9.5\r
+\r