[PATCH 2/9] lib: private string map (associative array) API
[notmuch-archives.git] / 1f / 88c2b93f9ca0b4ec8dfbdb41331faf9e420baf
1 Return-Path: <markwalters1009@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 6FBCD431FDB\r
6         for <notmuch@notmuchmail.org>; Sun, 18 Aug 2013 05:15:42 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.201\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
14         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id 1P0OIvo7wrXj for <notmuch@notmuchmail.org>;\r
18         Sun, 18 Aug 2013 05:15:36 -0700 (PDT)\r
19 Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com\r
20  [74.125.82.54])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
21  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
22  2BBA642117A    for <notmuch@notmuchmail.org>; Sun, 18 Aug 2013 05:14:59 -0700\r
23  (PDT)\r
24 Received: by mail-wg0-f54.google.com with SMTP id e12so2650264wgh.21\r
25         for <notmuch@notmuchmail.org>; Sun, 18 Aug 2013 05:14:58 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
28         bh=wlmkO6dXIVm/zMpyR378cmgyg6lzbyXnQ7bS+2BuzPc=;\r
29         b=fchb9uZ+Bnfx2iSmRIKDH3mtFR6OMsnS+iK+IvvDMYfPWIABmZdYRRbJ22/yIDCtUt\r
30         GP0Nk/woM10fhtdeau6RTL1xvUr303MkvTrCHpf4Rh61ESZzeFdSQBiz+lZOFUFBcIRy\r
31         faSMZ+9lm37y6sbQiekT9QKJWR82sf09Dbw7CiNfwuzU0Yl7pig6+F81op9Ya2NofjbD\r
32         HraZd3MmFY/6oZrLSk0/S1JsHOvJshvEPeGQ1wvUbQDfv5Swb0rTKwFcuS7YRZUPksNO\r
33         sbw/0zauu4yVGhzg9GAQvdLnz410UpxGhKSFtBQvr8zJ1+kDF1cbIsw1eaE+rx6RRMlS\r
34         o2FQ==\r
35 X-Received: by 10.180.210.243 with SMTP id mx19mr4448604wic.35.1376828098067; \r
36         Sun, 18 Aug 2013 05:14:58 -0700 (PDT)\r
37 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
38         by mx.google.com with ESMTPSA id hb2sm10683934wib.0.1969.12.31.16.00.00\r
39         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
40         Sun, 18 Aug 2013 05:14:57 -0700 (PDT)\r
41 From: Mark Walters <markwalters1009@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH v2 08/11] contrib: pick: close window function\r
44 Date: Sun, 18 Aug 2013 13:14:36 +0100\r
45 Message-Id: <1376828079-21455-9-git-send-email-markwalters1009@gmail.com>\r
46 X-Mailer: git-send-email 1.7.9.1\r
47 In-Reply-To: <1376828079-21455-1-git-send-email-markwalters1009@gmail.com>\r
48 References: <1376828079-21455-1-git-send-email-markwalters1009@gmail.com>\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\r
52 List-Id: "Use and development of the notmuch mail system."\r
53         <notmuch.notmuchmail.org>\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
57 List-Post: <mailto:notmuch@notmuchmail.org>\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
61 X-List-Received-Date: Sun, 18 Aug 2013 12:15:42 -0000\r
62 \r
63 ---\r
64  contrib/notmuch-pick/notmuch-pick.el |   12 ++++++++++++\r
65  1 files changed, 12 insertions(+), 0 deletions(-)\r
66 \r
67 diff --git a/contrib/notmuch-pick/notmuch-pick.el b/contrib/notmuch-pick/notmuch-pick.el\r
68 index bd506ca..ba252d5 100644\r
69 --- a/contrib/notmuch-pick/notmuch-pick.el\r
70 +++ b/contrib/notmuch-pick/notmuch-pick.el\r
71 @@ -208,6 +208,18 @@ This function does not give an error if there is no button."\r
72    (let ((button (or button (button-at (point)))))\r
73      (when button (button-activate button))))\r
74  \r
75 +(defun notmuch-pick-close-message-pane-and (func)\r
76 +  "Close message pane and execute FUNC.\r
77 +\r
78 +This function returns a function (so can be used as a keybinding)\r
79 +which closes the message pane if open and then executes function\r
80 +FUNC."\r
81 +  `(lambda ()\r
82 +      ,(concat "(Close message pane and) " (documentation func t))\r
83 +     (interactive)\r
84 +     (notmuch-pick-close-message-window)\r
85 +     (funcall #',func)))\r
86 +\r
87  (defvar notmuch-pick-mode-map\r
88    (let ((map (make-sparse-keymap)))\r
89      (define-key map [mouse-1] 'notmuch-pick-show-message)\r
90 -- \r
91 1.7.9.1\r
92 \r