Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 05 / 1007b211d08412deed8c900e5a27c0cd229b9e
1 Return-Path: <jinwoo68@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 A4BB6431FC9\r
6         for <notmuch@notmuchmail.org>; Thu, 22 Jan 2015 09:49:10 -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: 2.639\r
10 X-Spam-Level: **\r
11 X-Spam-Status: No, score=2.639 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         DNS_FROM_AHBL_RHSBL=2.438, FREEMAIL_ENVFROM_END_DIGIT=1,\r
14         FREEMAIL_FROM=0.001, 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 Ir-RFFwBDFfO for <notmuch@notmuchmail.org>;\r
18         Thu, 22 Jan 2015 09:49:07 -0800 (PST)\r
19 Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com\r
20         [209.85.223.179]) (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 7046A431FBC\r
23         for <notmuch@notmuchmail.org>; Thu, 22 Jan 2015 09:49:07 -0800 (PST)\r
24 Received: by mail-ie0-f179.google.com with SMTP id x19so2703048ier.10\r
25         for <notmuch@notmuchmail.org>; Thu, 22 Jan 2015 09:49:06 -0800 (PST)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27         h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
28         :mime-version:content-type;\r
29         bh=xchMqlwDL128EybK/4aOQyk48ZTlHrvAVqFDQQk3A54=;\r
30         b=kL88fXzPDcfIatw4YhgcmxVdr4+1+BE5jNWP9qgAJJJV/r78/jwi6SK8X2rUqzOpui\r
31         SsneU5wuNw/LhenOJthxO0J2mzZRg23Bo93o5qPabrdftCz2NDG3M7KOMS50jCGSnshH\r
32         RPluQ7WYBWd6Dk+GYB+pVGSsgJX0uLPaeYVSchn49OxEcY+OKBHzT3aE3D3Ja4NJwGnY\r
33         tOhXn4dFRlFBAbJMibLA9otf89krqWjRDVgNoBhMT7T79LdO18O+oVV2QLlpYng+DzV0\r
34         5NiOpG7iHxUMugoXuC/izRKdILGW+U62YzSFEsFh1JHS0j0r0bGvPjwA2YaIoFomAdxU\r
35         VF0A==\r
36 X-Received: by 10.42.145.5 with SMTP id d5mr4741183icv.8.1421948945950;\r
37         Thu, 22 Jan 2015 09:49:05 -0800 (PST)\r
38 Received: from localhost ([2620:0:1000:407c:9166:f28e:7341:7e7c])\r
39         by mx.google.com with ESMTPSA id t1sm5651327igs.0.2015.01.22.09.49.04\r
40         (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
41         Thu, 22 Jan 2015 09:49:04 -0800 (PST)\r
42 From: Jinwoo Lee <jinwoo68@gmail.com>\r
43 To: David Bremner <david@tethera.net>, David Bremner <david@tethera.net>,\r
44         notmuch@notmuchmail.org\r
45 Subject: Re: [PATCH] emacs: escape % in header line format\r
46 In-Reply-To: <1421915852-13963-1-git-send-email-david@tethera.net>\r
47 References: <yq657fwfcjt5.fsf@jinwoo-macbookair.roam.corp.google.com>\r
48         <1421915852-13963-1-git-send-email-david@tethera.net>\r
49 User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.1\r
50         (x86_64-apple-darwin13.2.0)\r
51 Date: Thu, 22 Jan 2015 09:49:05 -0800\r
52 Message-ID: <yq65wq4eaepa.fsf@jinwoo-macbookair.roam.corp.google.com>\r
53 MIME-Version: 1.0\r
54 Content-Type: text/plain\r
55 X-BeenThere: notmuch@notmuchmail.org\r
56 X-Mailman-Version: 2.1.13\r
57 Precedence: list\r
58 List-Id: "Use and development of the notmuch mail system."\r
59         <notmuch.notmuchmail.org>\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
63 List-Post: <mailto:notmuch@notmuchmail.org>\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
67 X-List-Received-Date: Thu, 22 Jan 2015 17:49:10 -0000\r
68 \r
69 Yup.  It works!  Thanks for the quick fix.  Is this going to be merged\r
70 to HEAD soon?\r
71 \r
72 -jinwoo\r
73 \r
74 On Thu, Jan 22, 2015 at 12:37 AM, David Bremner <david@tethera.net> wrote:\r
75 > We set header-line-format to the message subject, but if the subject\r
76 > contains percents, the next character is interpreted as a formatting\r
77 > control, which is not desired.\r
78 > ---\r
79 >\r
80 > You're correct of course. I have no idea how my testing convinced me\r
81 > the previous version worked.\r
82 >\r
83 > emacs/notmuch-show.el | 6 +++++-\r
84 >  1 file changed, 5 insertions(+), 1 deletion(-)\r
85 >\r
86 > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
87 > index 9f6fe07..87b4881 100644\r
88 > --- a/emacs/notmuch-show.el\r
89 > +++ b/emacs/notmuch-show.el\r
90 > @@ -1198,7 +1198,11 @@ function is used."\r
91 >        (notmuch-show-mapc (lambda () (notmuch-show-set-prop :orig-tags (notmuch-show-get-tags))))\r
92 >  \r
93 >        ;; Set the header line to the subject of the first message.\r
94 > -      (setq header-line-format (notmuch-sanitize (notmuch-show-strip-re (notmuch-show-get-subject))))\r
95 > +      (setq header-line-format\r
96 > +         (replace-regexp-in-string "%" "%%"\r
97 > +                         (notmuch-sanitize\r
98 > +                          (notmuch-show-strip-re\r
99 > +                           (notmuch-show-get-subject)))))\r
100 >  \r
101 >        (run-hooks 'notmuch-show-hook))))\r
102 >  \r
103 > -- \r
104 > 2.1.4\r