[PATCH v3 10/11] contrib: pick: add in binding to view raw message
[notmuch-archives.git] / d3 / 02980026096e59b119fcbc3b0e026694af46d7
1 Return-Path: <dmitry.kurochkin@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 3DFFB429E29\r
6         for <notmuch@notmuchmail.org>; Fri, 16 Dec 2011 20:21:07 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id EfwoiWlS-5rX for <notmuch@notmuchmail.org>;\r
17         Fri, 16 Dec 2011 20:21:03 -0800 (PST)\r
18 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
19         [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id BC731431FB6\r
22         for <notmuch@notmuchmail.org>; Fri, 16 Dec 2011 20:21:02 -0800 (PST)\r
23 Received: by werm12 with SMTP id m12so970080wer.26\r
24         for <notmuch@notmuchmail.org>; Fri, 16 Dec 2011 20:21:00 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=from:to:subject:date:message-id:x-mailer;\r
27         bh=kAfaFXBGmQvo7DhqZz4e2QpcrTfWPLTo19/vxnpDuFM=;\r
28         b=s4rHpphFXO8C9WHN3ysjcQqLW6EOsFuxCavTJpvdOcfgoz1/pNQ7yROcsXXxEauwNx\r
29         VjUUhdkPzxZPgkLSoj5XzZgDyYadsmpMImP7UQ4ag++glPs75SA6bDgngUrP0emZ5jzC\r
30         wG8FBScC6z7v6n8JqO5xqYuUke8n/3lVzEre4=\r
31 Received: by 10.216.136.155 with SMTP id w27mr5209141wei.8.1324095660076;\r
32         Fri, 16 Dec 2011 20:21:00 -0800 (PST)\r
33 Received: from localhost ([91.144.186.21])\r
34         by mx.google.com with ESMTPS id fo3sm15812711wib.11.2011.12.16.20.20.58\r
35         (version=TLSv1/SSLv3 cipher=OTHER);\r
36         Fri, 16 Dec 2011 20:20:59 -0800 (PST)\r
37 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
38 To: notmuch@notmuchmail.org\r
39 Subject: [PATCH 1/4] test: add `notmuch-hello-mode-hook-counter'\r
40 Date: Sat, 17 Dec 2011 08:20:16 +0400\r
41 Message-Id: <1324095619-10870-1-git-send-email-dmitry.kurochkin@gmail.com>\r
42 X-Mailer: git-send-email 1.7.7.3\r
43 X-BeenThere: notmuch@notmuchmail.org\r
44 X-Mailman-Version: 2.1.13\r
45 Precedence: list\r
46 List-Id: "Use and development of the notmuch mail system."\r
47         <notmuch.notmuchmail.org>\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
51 List-Post: <mailto:notmuch@notmuchmail.org>\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
55 X-List-Received-Date: Sat, 17 Dec 2011 04:21:07 -0000\r
56 \r
57 Add `notmuch-hello-mode-hook-counter' hook to count how many times\r
58 `notmuch-hello-mode-hook' was called.  The counter function increments\r
59 `notmuch-hello-mode-hook-counter' variable value if it is bount,\r
60 otherwise it does nothing.\r
61 ---\r
62  test/test-lib.el |    9 +++++++++\r
63  1 files changed, 9 insertions(+), 0 deletions(-)\r
64 \r
65 diff --git a/test/test-lib.el b/test/test-lib.el\r
66 index 97ae593..3bca138 100644\r
67 --- a/test/test-lib.el\r
68 +++ b/test/test-lib.el\r
69 @@ -61,3 +61,12 @@ running, quit if it terminated."\r
70    (if (not (process-attributes pid))\r
71        (kill-emacs)\r
72      (run-at-time "1 min" nil 'orphan-watchdog pid)))\r
73 +\r
74 +(defun notmuch-hello-mode-hook-counter ()\r
75 +  "Count how many times `notmuch-hello-mode-hook' is called.\r
76 +Increments `notmuch-hello-mode-hook-counter' variable value if it\r
77 +is bound, otherwise does nothing."\r
78 +  (if (boundp 'notmuch-hello-mode-hook-counter)\r
79 +      (setq notmuch-hello-mode-hook-counter\r
80 +           (1+ notmuch-hello-mode-hook-counter))))\r
81 +(add-hook 'notmuch-hello-mode-hook 'notmuch-hello-mode-hook-counter)\r
82 -- \r
83 1.7.7.3\r
84 \r