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 B4382429E3D
\r
6 for <notmuch@notmuchmail.org>; Fri, 1 Nov 2013 02:24:23 -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 tTDDwnsgYAaM for <notmuch@notmuchmail.org>;
\r
18 Fri, 1 Nov 2013 02:24:19 -0700 (PDT)
\r
19 Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com
\r
20 [209.85.212.180]) (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 D8298431FD0
\r
23 for <notmuch@notmuchmail.org>; Fri, 1 Nov 2013 02:24:14 -0700 (PDT)
\r
24 Received: by mail-wi0-f180.google.com with SMTP id ey11so801279wid.7
\r
25 for <notmuch@notmuchmail.org>; Fri, 01 Nov 2013 02:24:13 -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=2Tcv2CSocTH6Y2WyrQa6xFZ0FeVkRZGnxf92aUL1Vec=;
\r
29 b=l+UsVRGoICXwKEkVDwNo6N+iyzJigoqPaDxDeQ5ljBXVc5uUTi3mtlFesVkcwqsEn2
\r
30 YtXxkU60TzQSSeyUeO/M1TnV2QAKCSM7+pX+vHnpzo9YR1C1NLQe5Gwuhpa+BY6bABzJ
\r
31 0KTdajMfyFfTQoN5oo3AouQxH+/UrqDPjAvPPSpkAsMXg92FWEOgMu75q0sS+KBm98Eo
\r
32 HQWJNUGIF0Z4yfbXqiUQkZOkB11MP1oC0yOlB+5zrvO4Dom4QqsN8EWNB+0tKDJmj98b
\r
33 jP21oWsd1jk/DMS707VFvGblO6/5L7avVy7MR9wuBLf/4eAaxw6PjzRL/0w8EzGh+nAd
\r
35 X-Received: by 10.180.76.114 with SMTP id j18mr1651740wiw.35.1383297853833;
\r
36 Fri, 01 Nov 2013 02:24:13 -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 fr4sm4524846wib.0.2013.11.01.02.24.13
\r
39 for <multiple recipients>
\r
40 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
41 Fri, 01 Nov 2013 02:24:13 -0700 (PDT)
\r
42 From: Mark Walters <markwalters1009@gmail.com>
\r
43 To: notmuch@notmuchmail.org
\r
44 Subject: [PATCH v2 11/11] emacs: move the show entry to tree into show.el
\r
45 Date: Fri, 1 Nov 2013 09:23:45 +0000
\r
46 Message-Id: <1383297825-12326-6-git-send-email-markwalters1009@gmail.com>
\r
47 X-Mailer: git-send-email 1.7.9.1
\r
48 In-Reply-To: <1383297825-12326-1-git-send-email-markwalters1009@gmail.com>
\r
49 References: <1383087338-10220-1-git-send-email-markwalters1009@gmail.com>
\r
50 <1383297825-12326-1-git-send-email-markwalters1009@gmail.com>
\r
51 X-BeenThere: notmuch@notmuchmail.org
\r
52 X-Mailman-Version: 2.1.13
\r
54 List-Id: "Use and development of the notmuch mail system."
\r
55 <notmuch.notmuchmail.org>
\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
59 List-Post: <mailto:notmuch@notmuchmail.org>
\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
63 X-List-Received-Date: Fri, 01 Nov 2013 09:24:24 -0000
\r
65 Move the keybinding and show specific helper from tree.el to show.el
\r
67 emacs/notmuch-show.el | 10 ++++++++++
\r
68 emacs/notmuch-tree.el | 12 +-----------
\r
69 2 files changed, 11 insertions(+), 11 deletions(-)
\r
71 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
72 index 9e8b9c0..f00273a 100644
\r
73 --- a/emacs/notmuch-show.el
\r
74 +++ b/emacs/notmuch-show.el
\r
76 (declare-function notmuch-foreach-mime-part "notmuch" (function mm-handle))
\r
77 (declare-function notmuch-count-attachments "notmuch" (mm-handle))
\r
78 (declare-function notmuch-save-attachments "notmuch" (mm-handle &optional queryp))
\r
79 +(declare-function notmuch-tree "notmuch-tree"
\r
80 + (&optional query query-context target buffer-name open-target))
\r
82 (defcustom notmuch-message-headers '("Subject" "To" "Cc" "Date")
\r
83 "Headers that should be shown in a message, in this order.
\r
84 @@ -1247,6 +1249,7 @@ reset based on the original query."
\r
85 (defvar notmuch-show-mode-map
\r
86 (let ((map (make-sparse-keymap)))
\r
87 (set-keymap-parent map notmuch-common-keymap)
\r
88 + (define-key map "Z" 'notmuch-tree-from-show-current-query)
\r
89 (define-key map (kbd "<C-tab>") 'widget-backward)
\r
90 (define-key map (kbd "M-TAB") 'notmuch-show-previous-button)
\r
91 (define-key map (kbd "<backtab>") 'notmuch-show-previous-button)
\r
92 @@ -1323,6 +1326,13 @@ All currently available key bindings:
\r
93 (setq buffer-read-only t
\r
96 +(defun notmuch-tree-from-show-current-query ()
\r
97 + "Call notmuch tree with the current query"
\r
99 + (notmuch-tree notmuch-show-thread-id
\r
100 + notmuch-show-query-context
\r
101 + (notmuch-show-get-message-id)))
\r
103 (defun notmuch-show-move-to-message-top ()
\r
104 (goto-char (notmuch-show-message-top)))
\r
106 diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
\r
107 index c66dd35..f13b41f 100644
\r
108 --- a/emacs/notmuch-tree.el
\r
109 +++ b/emacs/notmuch-tree.el
\r
110 @@ -404,15 +404,6 @@ Does NOT change the database."
\r
111 (notmuch-tree-close-message-window)
\r
112 (notmuch-tree query)))
\r
114 -;; This function should be in notmuch-show.el but be we trying to
\r
115 -;; minimise impact on the rest of the codebase.
\r
116 -(defun notmuch-tree-from-show-current-query ()
\r
117 - "Call notmuch tree with the current query"
\r
119 - (notmuch-tree notmuch-show-thread-id
\r
120 - notmuch-show-query-context
\r
121 - (notmuch-show-get-message-id)))
\r
123 (defun notmuch-tree-message-window-kill-hook ()
\r
124 "Close the message pane when exiting the show buffer."
\r
125 (let ((buffer (current-buffer)))
\r
126 @@ -918,7 +909,6 @@ The arguments are:
\r
127 (setq truncate-lines t))
\r
130 -;; Set up key bindings from the rest of notmuch.
\r
131 -(define-key notmuch-show-mode-map "Z" 'notmuch-tree-from-show-current-query)
\r
134 (provide 'notmuch-tree)
\r