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 3456D431FBC for ; Fri, 15 Jun 2012 08:53:52 -0700 (PDT) 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 4mj8iWRQaWzO for ; Fri, 15 Jun 2012 08:53:51 -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 4A2E6431FB6 for ; Fri, 15 Jun 2012 08:53:51 -0700 (PDT) Received: by lagu2 with SMTP id u2so2337793lag.26 for ; Fri, 15 Jun 2012 08:53:48 -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:x-gm-message-state; bh=+ZSPu+OFlNde50ByhJNRXlfWjfgRNwcJlCexecWPfrU=; b=SeNaDjpIRHw7luF2IZJ4nOb4DH+fsW15SsqATb9WZsqac3h/VRRI1k7Mz7F5aU2QN9 S4DwmvHeAp1+i1D7QxcwXGpENGnwY8GWyoNStcmCIAHfbHOr2MNNe9j0sqB3axfeElBf gqORBKMjwufBcoqjCyyhjSXDTlVzCXnZByjPn7T+uApQQRKb3enR4NI8+e3oFUc1yqjo Utoc4uLjM8Y5pryslzEHpnMrOVfoyvjETFWhxBWBK9Dj2zvKEugjeDUKaS1YXSjiZT+3 U5h8l5dhPWdp7wzj1N6QTVYAzkuEcVz8aQUJ7WbYMLgj72Fli722/1a9k+kF0B9UdXF9 F06g== Received: by 10.152.48.37 with SMTP id i5mr5967241lan.36.1339775628329; Fri, 15 Jun 2012 08:53:48 -0700 (PDT) Received: from localhost (dsl-hkibrasgw4-fe50dc00-68.dhcp.inet.fi. [80.220.80.68]) by mx.google.com with ESMTPS id lv13sm12978088lab.8.2012.06.15.08.53.46 (version=SSLv3 cipher=OTHER); Fri, 15 Jun 2012 08:53:47 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH 1/3] emacs: add no-display arg to notmuch-hello-refresh-hook Date: Fri, 15 Jun 2012 18:53:42 +0300 Message-Id: <37899e28dbf67e4620a53279a869be3174c02d6f.1339775602.git.jani@nikula.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQlnPEi98FN2P0HFGuNj3nFX1n4z/eyq8v3pmI6rmcpx0iZc5udrVF8IewC56QC9tjBXPW14 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, 15 Jun 2012 15:53:52 -0000 Add no-display arg to notmuch-hello-refresh-hook to allow each hook to decide what is appropriate when no-display is t, which is typically the case when called non-interactively. This is used by the following patch. 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 684bedc..bc43178 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -812,7 +812,7 @@ following: (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