Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 4f / de44b2c4bce74c18a69ecbbd71c2358b54eaaa
1 Return-Path: <alpine.art.de@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 0CF0A431FCF\r
6         for <notmuch@notmuchmail.org>; Thu, 22 Jan 2015 12:41: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: 1.639\r
10 X-Spam-Level: *\r
11 X-Spam-Status: No, score=1.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_FROM=0.001,\r
14         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 D6NAtTGxSG-I for <notmuch@notmuchmail.org>;\r
18         Thu, 22 Jan 2015 12:41:21 -0800 (PST)\r
19 Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com\r
20         [209.85.212.170]) (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 C7C3B431FCB\r
23         for <notmuch@notmuchmail.org>; Thu, 22 Jan 2015 12:41:20 -0800 (PST)\r
24 Received: by mail-wi0-f170.google.com with SMTP id em10so24159949wid.1\r
25         for <notmuch@notmuchmail.org>; Thu, 22 Jan 2015 12:41:19 -0800 (PST)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27         h=date:from:to:cc:message-id:in-reply-to:references:subject\r
28         :mime-version:content-type:content-transfer-encoding:attach;\r
29         bh=ix4VF47cEzIYuVV3zrhc/TVLqwR+DOWt7jh9d950z0k=;\r
30         b=YHVyJno6ZnbLTcIgfoYETWctmKzthtteNCJ/uUYqYbttWTUTnb6AwyTSY+I551wUuo\r
31         QyX4CbZqzfTw+O0yPkhS+IlN9x2NWy/muE41Ke9dmuTUF3ZA5MF3gSS2aIuF50DHiAQx\r
32         BKEh0e3nBUr+2Rod6iCPMk4ri018Aon8fbCNlVV0y2fopVE/VyjC0IXjkLro2+Y8khm6\r
33         Geogn+ADvc6YP0Nu+weyxuQMDTZV63tA+anyCYoeVpPnE7mxpZCHpoJKVtlxOyFYCCQI\r
34         NJAScWb4mFmvpCnZAZCaSb0EQVUmnMDEr4iRY2EhAezi9UqsPqX8BY5RcUKlVpwD46lI\r
35         Yqww==\r
36 X-Received: by 10.180.83.5 with SMTP id m5mr8757031wiy.74.1421959279543;\r
37         Thu, 22 Jan 2015 12:41:19 -0800 (PST)\r
38 Received: from localhost (p579BA329.dip0.t-ipconnect.de. [87.155.163.41])\r
39         by mx.google.com with ESMTPSA id h8sm241893wiy.4.2015.01.22.12.41.17\r
40         (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
41         Thu, 22 Jan 2015 12:41:18 -0800 (PST)\r
42 Date: Thu, 22 Jan 2015 21:41:47 +0100\r
43 From: Franz Fellner <alpine.art.de@gmail.com>\r
44 To: Bartosz <telenczuk@unic.cnrs-gif.fr>\r
45 Message-ID: <54c1608bd22a9_67b66d530832@TP_L520.notmuch>\r
46 In-Reply-To: <1420891384-992-2-git-send-email-telenczuk@unic.cnrs-gif.fr>\r
47 References: <1420891384-992-1-git-send-email-telenczuk@unic.cnrs-gif.fr>\r
48         <1420891384-992-2-git-send-email-telenczuk@unic.cnrs-gif.fr>\r
49 Subject: RE: [PATCH 1/4] VIM: implemented message folding in thread view\r
50 Mime-Version: 1.0\r
51 Content-Type: text/plain;\r
52  charset=utf-8\r
53 Content-Transfer-Encoding: 7bit\r
54 Attach: \r
55 Cc: notmuch@notmuchmail.org, Bartosz <telenczuk@unic.cnrs-gif.fr>\r
56 X-BeenThere: notmuch@notmuchmail.org\r
57 X-Mailman-Version: 2.1.13\r
58 Precedence: list\r
59 List-Id: "Use and development of the notmuch mail system."\r
60         <notmuch.notmuchmail.org>\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
64 List-Post: <mailto:notmuch@notmuchmail.org>\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
68 X-List-Received-Date: Thu, 22 Jan 2015 20:41:25 -0000\r
69 \r
70 Hi Bartosz,\r
71 \r
72 We already had folding via syntax in Ians fork. It turned out to be not that great.\r
73 https://github.com/imain/notmuch-vim/issues/3\r
74 In short:\r
75 Those syntax fold marks are for one specific notmuch-show-buffer. If you open a second show-buffer those\r
76 new fold marks will overwrite the ones from the previous show-buffer. Switching between those two show-buffers\r
77 will spin up CPU for quite some time and completely lock vim.\r
78 The fix I worked out was to switch to manual folding. Manual folds get chached for each buffer.\r
79 \r
80 I could come up with a patch, but I think there are more important things, like attachments or storing sent mails.\r
81 It also would help a lot if we could reoranize the sources as in Ians fork. Would simplify testing, coding (proper filetype) and backporting patches.\r
82 \r
83 Franz\r
84 \r
85 Bartosz wrote:\r
86 > ---\r
87 >  vim/notmuch.vim | 6 ++++++\r
88 >  1 file changed, 6 insertions(+)\r
89\r
90 > diff --git a/vim/notmuch.vim b/vim/notmuch.vim\r
91 > index cad9517..34d4f92 100644\r
92 > --- a/vim/notmuch.vim\r
93 > +++ b/vim/notmuch.vim\r
94 > @@ -345,8 +345,13 @@ ruby << EOF\r
95 >               VIM::command("syntax region nmShowMsg#{i}Desc start='\\%%%il' end='\\%%%il' contains=@nmShowMsgDesc" % [msg.start, msg.start + 1])\r
96 >               VIM::command("syntax region nmShowMsg#{i}Head start='\\%%%il' end='\\%%%il' contains=@nmShowMsgHead" % [msg.start + 1, msg.body_start])\r
97 >               VIM::command("syntax region nmShowMsg#{i}Body start='\\%%%il' end='\\%%%dl' contains=@nmShowMsgBody" % [msg.body_start, msg.end])\r
98 > +             VIM::command("syntax region nmShowMsg#{i}Fold start='\\%%%il' end='\\%%%dl' contains=nmShowMsg#{i}Body,nmShowMsg#{i}Head,nmShowMsg#{i}Desc fold" % [msg.start, msg.end])\r
99 >       end\r
100 > +     VIM::command("g/^.*(.*unread.*)$/normal zo")\r
101 > +     VIM::command("nohl")\r
102 > +     VIM::command("normal gg/unread/1") \r
103 >  EOF\r
104 > +    set foldmethod=syntax\r
105 >       setlocal nomodifiable\r
106 >       call s:set_map(g:notmuch_show_maps)\r
107 >  endfunction\r
108 > @@ -957,5 +962,6 @@ EOF\r
109 >  endfunction\r
110 >  \r
111 >  command -nargs=* NotMuch call s:NotMuch(<f-args>)\r
112 > +set foldtext=v:folddashes.substitute(getline(v:foldstart),'{{{','','g')\r
113 >  \r
114 >  " vim: set noexpandtab:\r
115 > -- \r
116 > 1.9.3 (Apple Git-50)\r
117\r
118 > _______________________________________________\r
119 > notmuch mailing list\r
120 > notmuch@notmuchmail.org\r
121 > http://notmuchmail.org/mailman/listinfo/notmuch\r
122 \r
123 \r