Re: database error
[notmuch-archives.git] / 56 / f8519d2079f89e9b89f95732ad2383c16c1bea
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 BF11C431FD7\r
6         for <notmuch@notmuchmail.org>; Tue, 29 Oct 2013 15:56:19 -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 Zinw1BIAKuGY for <notmuch@notmuchmail.org>;\r
18         Tue, 29 Oct 2013 15:56:15 -0700 (PDT)\r
19 Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com\r
20  [74.125.82.42])        (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  D0BC5431FC4    for <notmuch@notmuchmail.org>; Tue, 29 Oct 2013 15:55:59 -0700\r
23  (PDT)\r
24 Received: by mail-wg0-f42.google.com with SMTP id n12so5390697wgh.1\r
25         for <notmuch@notmuchmail.org>; Tue, 29 Oct 2013 15:55: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=nJh0UWR79KCRZjHzzVskA/jaJ8jILtEnM6aPyyFvulE=;\r
29         b=B+eVkQcrRv/FSdWTR0Ck3azHFJ+SlevOjP/Loqcb+W1Zrifax5AwN/UeBIlluEy3hx\r
30         bGXwrsta7C7gAbZp0NznGXeUYeFX2y/m1RinHXvNiYPKmFPWcrFZpzPTOF9kn66GGV3A\r
31         qagrMqQzyxmNqmgP+DuhBbGm7ueyI8kVMWHPueNjk1KnHEOYasY/at9UozLYkbNttQln\r
32         L1Y5r/AvUlONQSv9Tu7IxS5coOU20BZ1U3V6JyU+8c1bLOULPAYSrKQPHPzi2YyKqZ8z\r
33         c9+cUKrYSMp8UmM3eYmuHGlQZ9SwRlZMKF4cNW8mqVQ/FR2fPWZUy1rUVBk4elaBT4d1\r
34         zfVQ==\r
35 X-Received: by 10.194.187.101 with SMTP id fr5mr481563wjc.76.1383087358738;\r
36         Tue, 29 Oct 2013 15:55: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 b7sm9539338wiz.8.2013.10.29.15.55.58\r
39         for <multiple recipients>\r
40         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
41         Tue, 29 Oct 2013 15:55:58 -0700 (PDT)\r
42 From: Mark Walters <markwalters1009@gmail.com>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH 09/11] emacs: move search based tree functions to notmuch.el\r
45 Date: Tue, 29 Oct 2013 22:55:36 +0000\r
46 Message-Id: <1383087338-10220-10-git-send-email-markwalters1009@gmail.com>\r
47 X-Mailer: git-send-email 1.7.9.1\r
48 In-Reply-To: <1383087338-10220-1-git-send-email-markwalters1009@gmail.com>\r
49 References: <1383087338-10220-1-git-send-email-markwalters1009@gmail.com>\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Tue, 29 Oct 2013 22:56:20 -0000\r
63 \r
64 Move a couple of the search mode specifc caller helpers for tree from\r
65 tree into notmuch.el.\r
66 ---\r
67  emacs/notmuch-tree.el |   18 ------------------\r
68  emacs/notmuch.el      |   14 ++++++++++++++\r
69  2 files changed, 14 insertions(+), 18 deletions(-)\r
70 \r
71 diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el\r
72 index ebfb5e7..78b4a57 100644\r
73 --- a/emacs/notmuch-tree.el\r
74 +++ b/emacs/notmuch-tree.el\r
75 @@ -413,24 +413,6 @@ Does NOT change the database."\r
76                 notmuch-show-query-context\r
77                 (notmuch-show-get-message-id)))\r
78  \r
79 -;; This function should be in notmuch.el but be we trying to minimise\r
80 -;; impact on the rest of the codebase.\r
81 -(defun notmuch-tree-from-search-current-query ()\r
82 -  "Call notmuch tree with the current query"\r
83 -  (interactive)\r
84 -  (notmuch-tree notmuch-search-query-string))\r
85 -\r
86 -;; This function should be in notmuch.el but be we trying to minimise\r
87 -;; impact on the rest of the codebase.\r
88 -(defun notmuch-tree-from-search-thread ()\r
89 -  "Show the selected thread with notmuch-tree"\r
90 -  (interactive)\r
91 -  (notmuch-tree (notmuch-search-find-thread-id)\r
92 -                notmuch-search-query-string\r
93 -               nil\r
94 -                (notmuch-prettify-subject (notmuch-search-find-subject))\r
95 -               t))\r
96 -\r
97  (defun notmuch-tree-message-window-kill-hook ()\r
98    "Close the message pane when exiting the show buffer."\r
99    (let ((buffer (current-buffer)))\r
100 diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
101 index 418c781..2c9a07c 100644\r
102 --- a/emacs/notmuch.el\r
103 +++ b/emacs/notmuch.el\r
104 @@ -439,6 +439,20 @@ If BARE is set then do not prefix with \"thread:\""\r
105                       (concat "*" (truncate-string-to-width subject 30 nil nil t) "*"))\r
106        (message "End of search results."))))\r
107  \r
108 +(defun notmuch-tree-from-search-current-query ()\r
109 +  "Call notmuch tree with the current query"\r
110 +  (interactive)\r
111 +  (notmuch-tree notmuch-search-query-string))\r
112 +\r
113 +(defun notmuch-tree-from-search-thread ()\r
114 +  "Show the selected thread with notmuch-tree"\r
115 +  (interactive)\r
116 +  (notmuch-tree (notmuch-search-find-thread-id)\r
117 +                notmuch-search-query-string\r
118 +               nil\r
119 +                (notmuch-prettify-subject (notmuch-search-find-subject))\r
120 +               t))\r
121 +\r
122  (defun notmuch-search-reply-to-thread (&optional prompt-for-sender)\r
123    "Begin composing a reply-all to the entire current thread in a new buffer."\r
124    (interactive "P")\r
125 -- \r
126 1.7.9.1\r
127 \r