[PATCH 1/3] emacs: add no-display arg to notmuch-hello-refresh-hook
authorJani Nikula <jani@nikula.org>
Fri, 15 Jun 2012 15:53:42 +0000 (18:53 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:47:41 +0000 (09:47 -0800)
49/d28916657b7222f222964f83ecd2bcee8c974b [new file with mode: 0644]

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