Re: [RFC] http://notmuchmail.org/searching/ [was: Re: Improving notmuch query documen...
[notmuch-archives.git] / 20 / 43b6448701c0e612939e64439e24330f487cb2
1 Return-Path: <jrollins@servo.finestructure.net>\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 C24A2429E2F\r
6         for <notmuch@notmuchmail.org>; Sat, 28 May 2011 14:52:26 -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: -1.921\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.921 tagged_above=-999 required=5\r
12         tests=[NO_DNS_FOR_FROM=0.379, RCVD_IN_DNSWL_MED=-2.3]\r
13         autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id tQYuLVyDvgfC for <notmuch@notmuchmail.org>;\r
17         Sat, 28 May 2011 14:52:25 -0700 (PDT)\r
18 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
19         [131.215.239.19])\r
20         by olra.theworths.org (Postfix) with ESMTP id 15410429E3B\r
21         for <notmuch@notmuchmail.org>; Sat, 28 May 2011 14:52:16 -0700 (PDT)\r
22 Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
23         by fire-doxen-postvirus (Postfix) with ESMTP id 9145E328157;\r
24         Sat, 28 May 2011 14:45:48 -0700 (PDT)\r
25 X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
26 Received: from servo.finestructure.net (cpe-98-149-172-122.socal.res.rr.com\r
27         [98.149.172.122]) (Authenticated sender: jrollins)\r
28         by fire-doxen-submit (Postfix) with ESMTP id C882D2E50E83;\r
29         Sat, 28 May 2011 14:45:45 -0700 (PDT)\r
30 Received: by servo.finestructure.net (Postfix, from userid 1000)\r
31         id 4EBD7853; Sat, 28 May 2011 14:52:05 -0700 (PDT)\r
32 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
33 To: Notmuch Mail <notmuch@notmuchmail.org>\r
34 Subject: [PATCH 19/25] emacs: fix notmuch-show-part-button to not include\r
35         newline\r
36 Date: Sat, 28 May 2011 14:51:54 -0700\r
37 Message-Id: <1306619520-25730-20-git-send-email-jrollins@finestructure.net>\r
38 X-Mailer: git-send-email 1.7.4.4\r
39 In-Reply-To: <1306619520-25730-19-git-send-email-jrollins@finestructure.net>\r
40 References: <1306619520-25730-1-git-send-email-jrollins@finestructure.net>\r
41         <1306619520-25730-2-git-send-email-jrollins@finestructure.net>\r
42         <1306619520-25730-3-git-send-email-jrollins@finestructure.net>\r
43         <1306619520-25730-4-git-send-email-jrollins@finestructure.net>\r
44         <1306619520-25730-5-git-send-email-jrollins@finestructure.net>\r
45         <1306619520-25730-6-git-send-email-jrollins@finestructure.net>\r
46         <1306619520-25730-7-git-send-email-jrollins@finestructure.net>\r
47         <1306619520-25730-8-git-send-email-jrollins@finestructure.net>\r
48         <1306619520-25730-9-git-send-email-jrollins@finestructure.net>\r
49         <1306619520-25730-10-git-send-email-jrollins@finestructure.net>\r
50         <1306619520-25730-11-git-send-email-jrollins@finestructure.net>\r
51         <1306619520-25730-12-git-send-email-jrollins@finestructure.net>\r
52         <1306619520-25730-13-git-send-email-jrollins@finestructure.net>\r
53         <1306619520-25730-14-git-send-email-jrollins@finestructure.net>\r
54         <1306619520-25730-15-git-send-email-jrollins@finestructure.net>\r
55         <1306619520-25730-16-git-send-email-jrollins@finestructure.net>\r
56         <1306619520-25730-17-git-send-email-jrollins@finestructure.net>\r
57         <1306619520-25730-18-git-send-email-jrollins@finestructure.net>\r
58         <1306619520-25730-19-git-send-email-jrollins@finestructure.net>\r
59 X-BeenThere: notmuch@notmuchmail.org\r
60 X-Mailman-Version: 2.1.13\r
61 Precedence: list\r
62 List-Id: "Use and development of the notmuch mail system."\r
63         <notmuch.notmuchmail.org>\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
67 List-Post: <mailto:notmuch@notmuchmail.org>\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
70         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
71 X-List-Received-Date: Sat, 28 May 2011 21:52:27 -0000\r
72 \r
73 This makes the button cleaner, so that it doesn't include the entire\r
74 rest of the line that the button is on.\r
75 ---\r
76  emacs/notmuch-show.el |   29 +++++++++++++++++------------\r
77  1 files changed, 17 insertions(+), 12 deletions(-)\r
78 \r
79 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
80 index 6c498ab..a25ad99 100644\r
81 --- a/emacs/notmuch-show.el\r
82 +++ b/emacs/notmuch-show.el\r
83 @@ -280,18 +280,23 @@ message at DEPTH in the current thread."\r
84    'face 'message-mml)\r
85  \r
86  (defun notmuch-show-insert-part-header (nth content-type declared-type &optional name comment)\r
87 -  (insert-button\r
88 -   (concat "[ "\r
89 -          (if name (concat name ": ") "")\r
90 -          declared-type\r
91 -          (if (not (string-equal declared-type content-type))\r
92 -              (concat " (as " content-type ")")\r
93 -            "")\r
94 -          (or comment "")\r
95 -          " ]\n")\r
96 -   :type 'notmuch-show-part-button-type\r
97 -   :notmuch-part nth\r
98 -   :notmuch-filename name))\r
99 +  (let ((button))\r
100 +    (setq button\r
101 +         (insert-button\r
102 +          (concat "[ "\r
103 +                  (if name (concat name ": ") "")\r
104 +                  declared-type\r
105 +                  (if (not (string-equal declared-type content-type))\r
106 +                      (concat " (as " content-type ")")\r
107 +                    "")\r
108 +                  (or comment "")\r
109 +                  " ]")\r
110 +          :type 'notmuch-show-part-button-type\r
111 +          :notmuch-part nth\r
112 +          :notmuch-filename name))\r
113 +    (insert "\n")\r
114 +    ;; return button\r
115 +    button))\r
116  \r
117  ;; Functions handling particular MIME parts.\r
118  \r
119 -- \r
120 1.7.4.4\r
121 \r