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 C0620421161
\r
6 for <notmuch@notmuchmail.org>; Sun, 18 Aug 2013 05:15:18 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 KkcynWGB9JHj for <notmuch@notmuchmail.org>;
\r
18 Sun, 18 Aug 2013 05:15:13 -0700 (PDT)
\r
19 Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com
\r
20 [74.125.82.44]) (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 778B9421163 for <notmuch@notmuchmail.org>; Sun, 18 Aug 2013 05:14:55 -0700
\r
24 Received: by mail-wg0-f44.google.com with SMTP id l18so2649748wgh.11
\r
25 for <notmuch@notmuchmail.org>; Sun, 18 Aug 2013 05:14:53 -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=4HeM+PEb9on8KlvcECJ3JoDY7fdmG16ZJmA4eu2aA2E=;
\r
29 b=DC9VQdvvs1LrodUbfOWYVJTHr11Kpb3XDDBSfkOqD6XBXO0GIqT9d3v2m6CUZejz8l
\r
30 FhrgUR4PNJLKiKG13vsyCEz7yuyK8Um+D+Go8z1qEcOiKT0NAJLUOGaxUlMTOs0JFu1k
\r
31 wq5SPWWCnt6E2EPcDuH9DjmIZ9uh62FG01WwwtiMVr79UUhJedbMU1cPqJBTJn24kspq
\r
32 qqCJqgadc3T8z7T9KMi6Cs5OitKCwnyWFhOVOsxqm8kIIKZswdlZRFWDS4nMgCPLMhlh
\r
33 WSAo1oV6J47UgSxqjRHy01kaGTYtwaJr6Ta8EtDrD+EgAFKMYYCzH0OX1+cSxziLQU8o
\r
35 X-Received: by 10.180.208.49 with SMTP id mb17mr4494162wic.64.1376828092987;
\r
36 Sun, 18 Aug 2013 05:14:52 -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 a4sm9673393wik.11.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:52 -0700 (PDT)
\r
41 From: Mark Walters <markwalters1009@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: [PATCH v2 05/11] contrib: pick: add in to-message-window function
\r
44 Date: Sun, 18 Aug 2013 13:14:33 +0100
\r
45 Message-Id: <1376828079-21455-6-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
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:19 -0000
\r
64 contrib/notmuch-pick/notmuch-pick.el | 13 +++++++++++++
\r
65 1 files changed, 13 insertions(+), 0 deletions(-)
\r
67 diff --git a/contrib/notmuch-pick/notmuch-pick.el b/contrib/notmuch-pick/notmuch-pick.el
\r
68 index 89e6d4b..d00d324 100644
\r
69 --- a/contrib/notmuch-pick/notmuch-pick.el
\r
70 +++ b/contrib/notmuch-pick/notmuch-pick.el
\r
71 @@ -187,6 +187,19 @@ if the user has loaded a different buffer in that window.")
\r
72 (make-variable-buffer-local 'notmuch-pick-message-buffer)
\r
73 (put 'notmuch-pick-message-buffer 'permanent-local t)
\r
75 +(defun notmuch-pick-to-message-pane (func)
\r
76 + "Execute FUNC in message pane.
\r
78 +This function returns a function (so can be used as a keybinding)
\r
79 +which executes function FUNC in the message pane if it is
\r
80 +open (if the message pane is closed it does nothing)."
\r
82 + ,(concat "(In message pane) " (documentation func t))
\r
84 + (when (window-live-p notmuch-pick-message-window)
\r
85 + (with-selected-window notmuch-pick-message-window
\r
86 + (funcall #',func)))))
\r
88 (defvar notmuch-pick-mode-map
\r
89 (let ((map (make-sparse-keymap)))
\r
90 (define-key map [mouse-1] 'notmuch-pick-show-message)
\r