Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / f4 / f2ad41697da352517d26d27116a834f82e5913
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 28445431FD7\r
6         for <notmuch@notmuchmail.org>; Sun, 18 Aug 2013 05:15:20 -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 YK8EEinJM7Hf for <notmuch@notmuchmail.org>;\r
18         Sun, 18 Aug 2013 05:15:14 -0700 (PDT)\r
19 Received: from mail-we0-f175.google.com (mail-we0-f175.google.com\r
20         [74.125.82.175]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id C3C32421164\r
23         for <notmuch@notmuchmail.org>; Sun, 18 Aug 2013 05:14:55 -0700 (PDT)\r
24 Received: by mail-we0-f175.google.com with SMTP id q58so2936833wes.20\r
25         for <notmuch@notmuchmail.org>; Sun, 18 Aug 2013 05:14:54 -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=8EWRF8vVNiTPQ74HFN05E+cDAeAynKjkiAnr4a5Dk7E=;\r
29         b=TxYBQFeeupX9afGLws9D9ezFeeOY4+6YCrliHYySnPIm88L12M6fQd7BUg7bQUgUFW\r
30         Cl4J5Ej+ofzJ+bqZwUeF+i5cDQnpquhtPv/tTI8crxj2Sab9HiXTlRf4zPa//bSr5r5y\r
31         3Y3Y5+GsNQAmr8rRhEnYpkhs4y48YX86OMbfYZGpjcMs8GXYvg7YpjOhFWXXUS5sGG5p\r
32         gSdn/aXPJzP2PpPq32odDFNjPOJAX7KjUTYYmU6XXdr58B8K/KFH9ZDggp7WOP7aC+S+\r
33         fOGyrVaFxhGMIxaj7j5nIgu2PItP2LaL21zqMh28J26PWfRn09UgmAduOW1monh8lhyf\r
34         Didg==\r
35 X-Received: by 10.180.94.106 with SMTP id db10mr4439353wib.38.1376828094682;\r
36         Sun, 18 Aug 2013 05:14:54 -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 b13sm9220481wic.9.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:54 -0700 (PDT)\r
41 From: Mark Walters <markwalters1009@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH v2 06/11] contrib: pick: add button press helper\r
44 Date: Sun, 18 Aug 2013 13:14:34 +0100\r
45 Message-Id: <1376828079-21455-7-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:20 -0000\r
62 \r
63 We will want to be able to activate buttons not in the current\r
64 buffer (ie in the message pane) so it is helpful to have a way of\r
65 activating a button without signalling error if there is no button.\r
66 ---\r
67  contrib/notmuch-pick/notmuch-pick.el |    8 ++++++++\r
68  1 files changed, 8 insertions(+), 0 deletions(-)\r
69 \r
70 diff --git a/contrib/notmuch-pick/notmuch-pick.el b/contrib/notmuch-pick/notmuch-pick.el\r
71 index d00d324..2abb08b 100644\r
72 --- a/contrib/notmuch-pick/notmuch-pick.el\r
73 +++ b/contrib/notmuch-pick/notmuch-pick.el\r
74 @@ -200,6 +200,14 @@ open (if the message pane is closed it does nothing)."\r
75         (with-selected-window notmuch-pick-message-window\r
76          (funcall #',func)))))\r
77  \r
78 +(defun notmuch-pick-button-activate (&optional button)\r
79 +  "Activate BUTTON or button at point\r
80 +\r
81 +This function does not give an error if there is no button."\r
82 +  (interactive)\r
83 +  (let ((button (or button (button-at (point)))))\r
84 +    (when button (button-activate button))))\r
85 +\r
86  (defvar notmuch-pick-mode-map\r
87    (let ((map (make-sparse-keymap)))\r
88      (define-key map [mouse-1] 'notmuch-pick-show-message)\r
89 -- \r
90 1.7.9.1\r
91 \r