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