[Patch v5 2/8] test: add support for compiling and running C snippets
[notmuch-archives.git] / 20 / 20816f8978ef928cfddffe2cccaa0c6592fba6
1 Return-Path: <tomi.ollila@iki.fi>\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 8E8DF431FAF\r
6         for <notmuch@notmuchmail.org>; Wed, 19 Nov 2014 03:07:13 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 DN-ljETRdh+D for <notmuch@notmuchmail.org>;\r
16         Wed, 19 Nov 2014 03:07:05 -0800 (PST)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id 828E4431FAE\r
19         for <notmuch@notmuchmail.org>; Wed, 19 Nov 2014 03:07:05 -0800 (PST)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id 169BD1000C1;\r
22         Wed, 19 Nov 2014 13:06:51 +0200 (EET)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: David Edmondson <dme@dme.org>, notmuch@notmuchmail.org\r
25 Subject: Re: [PATCH v1] emacs: `with-current-notmuch-show-message' should not\r
26         leak    `coding-system-for-read'\r
27 In-Reply-To: <1416294197-3170-1-git-send-email-dme@dme.org>\r
28 References: <1416294197-3170-1-git-send-email-dme@dme.org>\r
29 User-Agent: Notmuch/0.19+6~g8725b09 (http://notmuchmail.org) Emacs/24.3.1\r
30         (x86_64-unknown-linux-gnu)\r
31 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
32         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
33         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
34 Date: Wed, 19 Nov 2014 13:06:50 +0200\r
35 Message-ID: <m2389fsb3p.fsf@guru.guru-group.fi>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Wed, 19 Nov 2014 11:07:13 -0000\r
51 \r
52 On Tue, Nov 18 2014, David Edmondson <dme@dme.org> wrote:\r
53 \r
54 > `with-current-notmuch-show-message' applies a `no-conversion' coding\r
55 > system when reading a raw message from notmuch. That coding system\r
56 > should _not_ be applied when the body of the macro is evaluated, as it\r
57 > can cause file operations used during that evaluation to incorrectly\r
58 > apply the `no-conversion' coding system.\r
59 >\r
60 > This was discovered when a user's .signature file contained non-ASCII\r
61 > characters. When a message is forwarded, the `no-conversion' coding\r
62 > system was applied to the reading of the .signature file, resulting in\r
63 > raw rather than UTF-8 interpretation of the data.\r
64 > ---\r
65 \r
66 Uh, this looks as good as it can be ;), and tests pass, +1\r
67 \r
68 Tomi\r
69 \r
70 \r
71 \r
72 >\r
73 > Fix for id:87ioifb55d.fsf@nautilus.nautilus.\r
74 >\r
75 >  emacs/notmuch-show.el | 6 +++---\r
76 >  1 file changed, 3 insertions(+), 3 deletions(-)\r
77 >\r
78 > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
79 > index 4035fe8..b8cfbb8 100644\r
80 > --- a/emacs/notmuch-show.el\r
81 > +++ b/emacs/notmuch-show.el\r
82 > @@ -241,9 +241,9 @@ every user interaction with notmuch."\r
83 >         (let ((buf (generate-new-buffer (concat "*notmuch-msg-" id "*"))))\r
84 >           (with-current-buffer buf\r
85 >          (let ((coding-system-for-read 'no-conversion))\r
86 > -          (call-process notmuch-command nil t nil "show" "--format=raw" id)\r
87 > -          ,@body)\r
88 > -        (kill-buffer buf))))))\r
89 > +          (call-process notmuch-command nil t nil "show" "--format=raw" id))\r
90 > +        ,@body)\r
91 > +      (kill-buffer buf)))))\r
92 >  \r
93 >  (defun notmuch-show-turn-on-visual-line-mode ()\r
94 >    "Enable Visual Line mode."\r
95 > -- \r
96 > 2.1.3\r
97 >\r
98 > _______________________________________________\r
99 > notmuch mailing list\r
100 > notmuch@notmuchmail.org\r
101 > http://notmuchmail.org/mailman/listinfo/notmuch\r