Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / a0 / 94ef2324748f16bb6ebf7169aa6099a8c0745a
1 Return-Path: <dme@dme.org>\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 4B932431FAF\r
6         for <notmuch@notmuchmail.org>; Fri, 20 Jan 2012 02:34:25 -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.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id IVueSTmDrWxu for <notmuch@notmuchmail.org>;\r
16         Fri, 20 Jan 2012 02:34:24 -0800 (PST)\r
17 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
18         [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 61FEB431FAE\r
21         for <notmuch@notmuchmail.org>; Fri, 20 Jan 2012 02:34:24 -0800 (PST)\r
22 Received: by werb10 with SMTP id b10so127621wer.26\r
23         for <notmuch@notmuchmail.org>; Fri, 20 Jan 2012 02:34:23 -0800 (PST)\r
24 Received: by 10.216.137.155 with SMTP id y27mr650936wei.53.1327055663088;\r
25         Fri, 20 Jan 2012 02:34:23 -0800 (PST)\r
26 Received: from hotblack-desiato.hh.sledj.net\r
27         (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])\r
28         by mx.google.com with ESMTPS id ho4sm2469187wib.3.2012.01.20.02.34.20\r
29         (version=TLSv1/SSLv3 cipher=OTHER);\r
30         Fri, 20 Jan 2012 02:34:21 -0800 (PST)\r
31 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)\r
32         id 4E5BAA0664; Fri, 20 Jan 2012 09:43:33 +0000 (GMT)\r
33 From: David Edmondson <dme@dme.org>\r
34 To: notmuch@notmuchmail.org\r
35 Subject: [PATCH 1/3] emacs: Tidy `notmuch-show-insert-part-header'.\r
36 Date: Fri, 20 Jan 2012 09:43:30 +0000\r
37 Message-Id: <1327052612-1040-1-git-send-email-dme@dme.org>\r
38 X-Mailer: git-send-email 1.7.8.3\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Fri, 20 Jan 2012 10:34:25 -0000\r
52 \r
53 ---\r
54  emacs/notmuch-show.el |   26 ++++++++++++--------------\r
55  1 files changed, 12 insertions(+), 14 deletions(-)\r
56 \r
57 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
58 index 03c1f6b..f62f8ac 100644\r
59 --- a/emacs/notmuch-show.el\r
60 +++ b/emacs/notmuch-show.el\r
61 @@ -286,20 +286,18 @@ message at DEPTH in the current thread."\r
62    'face 'message-mml)\r
63  \r
64  (defun notmuch-show-insert-part-header (nth content-type declared-type &optional name comment)\r
65 -  (let ((button))\r
66 -    (setq button\r
67 -         (insert-button\r
68 -          (concat "[ "\r
69 -                  (if name (concat name ": ") "")\r
70 -                  declared-type\r
71 -                  (if (not (string-equal declared-type content-type))\r
72 -                      (concat " (as " content-type ")")\r
73 -                    "")\r
74 -                  (or comment "")\r
75 -                  " ]")\r
76 -          :type 'notmuch-show-part-button-type\r
77 -          :notmuch-part nth\r
78 -          :notmuch-filename name))\r
79 +  (let ((button (insert-button\r
80 +                (concat "[ "\r
81 +                        (if name (concat name ": ") "")\r
82 +                        declared-type\r
83 +                        (if (not (string-equal declared-type content-type))\r
84 +                            (concat " (as " content-type ")")\r
85 +                          "")\r
86 +                        (or comment "")\r
87 +                        " ]")\r
88 +                :type 'notmuch-show-part-button-type\r
89 +                :notmuch-part nth\r
90 +                :notmuch-filename name)))\r
91      (insert "\n")\r
92      ;; return button\r
93      button))\r
94 -- \r
95 1.7.8.3\r
96 \r