Re: Thanks for the nmbug-status program
[notmuch-archives.git] / ad / 364fa69c40a116ef5eecc4b6149069806916d6
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 2DC09431FAF\r
6         for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 09:39:37 -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 gN8swHa3KYBt for <notmuch@notmuchmail.org>;\r
16         Wed, 18 Jan 2012 09:39:36 -0800 (PST)\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
18  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
19  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
20  A276B431FAE    for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 09:39:36 -0800\r
21  (PST)\r
22 Received: by wgbdt12 with SMTP id dt12so66508wgb.2\r
23         for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 09:39:35 -0800 (PST)\r
24 Received: by 10.180.19.6 with SMTP id a6mr38488746wie.14.1326908375483;\r
25         Wed, 18 Jan 2012 09:39:35 -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 di5sm57336768wib.3.2012.01.18.09.39.33\r
29         (version=TLSv1/SSLv3 cipher=OTHER);\r
30         Wed, 18 Jan 2012 09:39:34 -0800 (PST)\r
31 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)\r
32         id 98CF29FD95; Wed, 18 Jan 2012 17:39:32 +0000 (GMT)\r
33 From: David Edmondson <dme@dme.org>\r
34 To: notmuch@notmuchmail.org\r
35 Subject: [PATCH v2] emacs: Make the part content available to the mm-inline*\r
36         checks.\r
37 Date: Wed, 18 Jan 2012 17:39:31 +0000\r
38 Message-Id: <1326908371-11949-1-git-send-email-dme@dme.org>\r
39 X-Mailer: git-send-email 1.7.8.3\r
40 In-Reply-To: <1326907993-11054-1-git-send-email-dme@dme.org>\r
41 References: <1326907993-11054-1-git-send-email-dme@dme.org>\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Wed, 18 Jan 2012 17:39:37 -0000\r
55 \r
56 The `mm-inlinable-p' and `mm-inlined-p' functions work better if they\r
57 have access to the data of the relevant part, so load that content\r
58 before calling either function.\r
59 \r
60 This fixes the display of attached image/jpeg parts, for example.\r
61 ---\r
62 \r
63 Removed the cruft that crept into the previous patch.\r
64 \r
65  emacs/notmuch-show.el |   14 ++++++--------\r
66  1 files changed, 6 insertions(+), 8 deletions(-)\r
67 \r
68 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
69 index 2df8d3b..f280df2 100644\r
70 --- a/emacs/notmuch-show.el\r
71 +++ b/emacs/notmuch-show.el\r
72 @@ -330,14 +330,12 @@ current buffer, if possible."\r
73      (with-temp-buffer\r
74        (let* ((charset (plist-get part :content-charset))\r
75              (handle (mm-make-handle (current-buffer) `(,content-type (charset . ,charset)))))\r
76 -       (if (and (mm-inlinable-p handle)\r
77 -                (mm-inlined-p handle))\r
78 -           (let ((content (notmuch-show-get-bodypart-content msg part nth)))\r
79 -             (insert content)\r
80 -             (set-buffer display-buffer)\r
81 -             (mm-display-part handle)\r
82 -             t)\r
83 -         nil)))))\r
84 +       (insert (notmuch-show-get-bodypart-content msg part nth))\r
85 +       (when (and (mm-inlinable-p handle)\r
86 +                  (mm-inlined-p handle))\r
87 +         (set-buffer display-buffer)\r
88 +         (mm-display-part handle)\r
89 +         t)))))\r
90  \r
91  (defvar notmuch-show-multipart/alternative-discouraged\r
92    '(\r
93 -- \r
94 1.7.8.3\r
95 \r