[PATCH] lib: provide _notmuch_database_log_append
[notmuch-archives.git] / 6e / 6ac7b6146e127a4ac7c65911a456ca50463e71
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 613BB431FC0\r
6         for <notmuch@notmuchmail.org>; Tue,  4 Dec 2012 15:27:58 -0800 (PST)\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 arDjycefA+cX for <notmuch@notmuchmail.org>;\r
18         Tue,  4 Dec 2012 15:27:56 -0800 (PST)\r
19 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
20         [209.85.212.181]) (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 25114431FD7\r
23         for <notmuch@notmuchmail.org>; Tue,  4 Dec 2012 15:27:51 -0800 (PST)\r
24 Received: by mail-wi0-f181.google.com with SMTP id hm9so941359wib.2\r
25         for <notmuch@notmuchmail.org>; Tue, 04 Dec 2012 15:27:50 -0800 (PST)\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:x-mailer:in-reply-to:references;\r
28         bh=iuitXGF53UPRpadss2ip747DwPd5aymWKHsTCynl3AQ=;\r
29         b=hipOzdO/QpoRn4IhGF0mAueVqQ1T2uFCQ1iCaWsNP0WIQJ6zkbg9ASZnoi5QqZv8hZ\r
30         OHxh9+WlOszEVTQK/n/EUmUYXQoRjwyMqqnZy2c+/sDp3uUo659sn5xP+vxoEJG23KfZ\r
31         OXG9dDZntMVuJc560L+4S7/ffSTvWv5Bu2zUraKuV8wXLii60AjT5HVXEbSq2xKNWPLb\r
32         SUxBn6c/vyGYnA9D0/gmoX3yzJp2GcPJ6bPYRrkswpnqpLOncMDW3TMQThQGQA2uAR4p\r
33         8vjVDJV6kh8GvzlX0+dHb8vTF2M1SlA5R16ctGpxbiHVLsorbhLwioENK+snjKU/Rz3/\r
34         POPQ==\r
35 Received: by 10.180.14.162 with SMTP id q2mr14185wic.21.1354663668744;\r
36         Tue, 04 Dec 2012 15:27:48 -0800 (PST)\r
37 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
38         by mx.google.com with ESMTPS id en20sm4002575wid.4.2012.12.04.15.27.47\r
39         (version=TLSv1/SSLv3 cipher=OTHER);\r
40         Tue, 04 Dec 2012 15:27:47 -0800 (PST)\r
41 From: Mark Walters <markwalters1009@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH 1/3] emacs: show: modify insert-part-header to save the button\r
44         text\r
45 Date: Tue,  4 Dec 2012 23:27:40 +0000\r
46 Message-Id: <1354663662-20524-2-git-send-email-markwalters1009@gmail.com>\r
47 X-Mailer: git-send-email 1.7.9.1\r
48 In-Reply-To: <1354663662-20524-1-git-send-email-markwalters1009@gmail.com>\r
49 References: <1354663662-20524-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, 04 Dec 2012 23:27:58 -0000\r
63 \r
64 This just make notmuch-show-insert-part-header save the basic button\r
65 text for parts as an attribute. This makes it simpler for the button\r
66 action (added in a later patch) to reword the label as appropriate (eg\r
67 append "(not shown)" or not as appropriate).\r
68 ---\r
69  emacs/notmuch-show.el |   19 ++++++++++---------\r
70  1 files changed, 10 insertions(+), 9 deletions(-)\r
71 \r
72 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
73 index d7fa10e..f8ce037 100644\r
74 --- a/emacs/notmuch-show.el\r
75 +++ b/emacs/notmuch-show.el\r
76 @@ -483,17 +483,18 @@ message at DEPTH in the current thread."\r
77  (fset 'notmuch-show-part-button-map notmuch-show-part-button-map)\r
78  \r
79  (defun notmuch-show-insert-part-header (nth content-type declared-type &optional name comment)\r
80 -  (let ((button))\r
81 +  (let ((button)\r
82 +       (base-label (concat (if name (concat name ": ") "")\r
83 +                           declared-type\r
84 +                           (if (not (string-equal declared-type content-type))\r
85 +                               (concat " (as " content-type ")")\r
86 +                             "")\r
87 +                           (or comment ""))))\r
88 +\r
89      (setq button\r
90           (insert-button\r
91 -          (concat "[ "\r
92 -                  (if name (concat name ": ") "")\r
93 -                  declared-type\r
94 -                  (if (not (string-equal declared-type content-type))\r
95 -                      (concat " (as " content-type ")")\r
96 -                    "")\r
97 -                  (or comment "")\r
98 -                  " ]")\r
99 +          (concat "[ " base-label " ]")\r
100 +          :base-label base-label\r
101            :type 'notmuch-show-part-button-type\r
102            :notmuch-part nth\r
103            :notmuch-filename name\r
104 -- \r
105 1.7.9.1\r
106 \r