Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 5d / 1a69e2360113d2ade9e7f91cdaac87d54420db
1 Return-Path: <imain@redhat.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 5565D429E25\r
6         for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 00:14:59 -0700 (PDT)\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\r
12         tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 TKUe92J9tYgD for <notmuch@notmuchmail.org>;\r
16         Fri, 24 Oct 2014 00:14:53 -0700 (PDT)\r
17 Received: from cmta13.telus.net (cmta13.telus.net [209.171.16.86])\r
18         by olra.theworths.org (Postfix) with ESMTP id AFFC5431FBD\r
19         for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 00:14:53 -0700 (PDT)\r
20 Received: from ovo.mains.priv ([207.102.88.62]) by cmta13.telus.net with TELUS\r
21         id 6vEr1p00D1LiWEf01vErt2; Fri, 24 Oct 2014 01:14:52 -0600\r
22 X-Authority-Analysis: v=2.0 cv=OrmRPVDt c=1 sm=2\r
23         a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=IkcTkHD0fZMA:10 a=tsa3CZZnAAAA:8\r
24         a=3PvxmG4qxLAccYsB3QYA:9 a=QEXdDO2ut3YA:10\r
25         a=EcQDfIwDZEqJA1f7rVUV8Q==:117\r
26 X-Telus-Outbound-IP: 207.102.88.62\r
27 Received: from ovo.mains.priv (localhost.localdomain [127.0.0.1])\r
28         by ovo.mains.priv (8.14.8/8.14.8) with ESMTP id s9O7Enk5011377\r
29         for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 00:14:50 -0700\r
30 Received: (from imain@localhost)\r
31         by ovo.mains.priv (8.14.8/8.14.8/Submit) id s9O7Em0j011376;\r
32         Fri, 24 Oct 2014 00:14:48 -0700\r
33 X-Authentication-Warning: ovo.mains.priv: imain set sender to imain@redhat.com\r
34         using -f\r
35 Date: Fri, 24 Oct 2014 00:14:48 -0700\r
36 From: Ian Main <imain@stemwinder.org>\r
37 To: notmuch@notmuchmail.org\r
38 Message-ID: <5449fc68cbccc_2c4deefe94d@ovo.mains.priv.notmuch>\r
39 In-Reply-To: <1412208162-30436-1-git-send-email-imain@stemwinder.org>\r
40 References: <1412208162-30436-1-git-send-email-imain@stemwinder.org>\r
41 Subject: RE: [PATCH] VIM v2: Add a 'tag all' folder option.\r
42 Mime-Version: 1.0\r
43 Content-Type: text/plain;\r
44  charset=utf-8\r
45 Content-Transfer-Encoding: 7bit\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Fri, 24 Oct 2014 07:14:59 -0000\r
59 \r
60 This one is pretty straightforward and useful too.\r
61 \r
62     Ian\r
63 \r
64 Ian Main wrote:\r
65 > This adds the ability to mark an entire folder as read (or any other\r
66 > tags you like once you map it).\r
67\r
68 > This update adds documentation for the command.\r
69\r
70 >     Ian\r
71 > ---\r
72 >  vim/notmuch.txt |  1 +\r
73 >  vim/notmuch.vim | 11 +++++++++++\r
74 >  2 files changed, 12 insertions(+)\r
75\r
76 > diff --git a/vim/notmuch.txt b/vim/notmuch.txt\r
77 > index 4374102..33cbe6e 100644\r
78 > --- a/vim/notmuch.txt\r
79 > +++ b/vim/notmuch.txt\r
80 > @@ -47,6 +47,7 @@ MAPPINGS                                    *notmuch-mappings*\r
81 >  Folder view~\r
82 >  \r
83 >  <enter>      Show selected search\r
84 > +A    Archive (-inbox -unread) an entire folder\r
85 >  s    Enter a new search\r
86 >  =    Refresh\r
87 >  c    Compose a new mail\r
88 > diff --git a/vim/notmuch.vim b/vim/notmuch.vim\r
89 > index 331e930..3f2444b 100644\r
90 > --- a/vim/notmuch.vim\r
91 > +++ b/vim/notmuch.vim\r
92 > @@ -11,6 +11,7 @@ let g:loaded_notmuch = "yep"\r
93 >  let g:notmuch_folders_maps = {\r
94 >       \ '<Enter>':    'folders_show_search()',\r
95 >       \ 's':          'folders_search_prompt()',\r
96 > +     \ 'A':          'folders_tag_all("-inbox -unread")',\r
97 >       \ '=':          'folders_refresh()',\r
98 >       \ 'c':          'compose()',\r
99 >       \ }\r
100 > @@ -378,6 +379,16 @@ ruby << EOF\r
101 >  EOF\r
102 >  endfunction\r
103 >  \r
104 > +function! s:folders_tag_all(tags)\r
105 > +ruby << EOF\r
106 > +     n = $curbuf.line_number\r
107 > +     s = $searches[n - 1]\r
108 > +     t = VIM::evaluate('a:tags')\r
109 > +     do_tag(s, t)\r
110 > +EOF\r
111 > +     call s:folders_refresh()\r
112 > +endfunction\r
113 > +\r
114 >  function! s:folders()\r
115 >       call s:new_buffer('folders')\r
116 >       ruby folders_render()\r
117 > -- \r
118 > 1.9.3\r
119\r
120 \r
121 \r