[PATCH] RFC: all deleting all properties with a given key
[notmuch-archives.git] / 7a / 7f3efedf5ddfb84ce3fed78509425d3e0b63b7
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 187CE431FC3\r
6         for <notmuch@notmuchmail.org>; Sun, 19 Oct 2014 02:43:27 -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 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 HIfZ+lttT4-c for <notmuch@notmuchmail.org>;\r
16         Sun, 19 Oct 2014 02:43:19 -0700 (PDT)\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 235CA431FC2\r
19         for <notmuch@notmuchmail.org>; Sun, 19 Oct 2014 02:43:19 -0700 (PDT)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id 5D0E910008C;\r
22         Sun, 19 Oct 2014 12:42:59 +0300 (EEST)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Ian Main <imain@stemwinder.org>, notmuch@notmuchmail.org\r
25 Subject: Re: [PATCH] VIM: Make starting in 'insert' mode for compose optional\r
26 In-Reply-To: <1412183488-12707-1-git-send-email-imain@stemwinder.org>\r
27 References: <1412183488-12707-1-git-send-email-imain@stemwinder.org>\r
28 User-Agent: Notmuch/0.18.1+130~ga61922f (http://notmuchmail.org) Emacs/24.3.1\r
29         (x86_64-unknown-linux-gnu)\r
30 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
31         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
32         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
33 Date: Sun, 19 Oct 2014 12:42:59 +0300\r
34 Message-ID: <m2tx30bdjw.fsf@guru.guru-group.fi>\r
35 MIME-Version: 1.0\r
36 Content-Type: text/plain\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.13\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Sun, 19 Oct 2014 09:43:27 -0000\r
50 \r
51 On Wed, Oct 01 2014, Ian Main <imain@stemwinder.org> wrote:\r
52 \r
53 > This adds a variable to make starting in insert mode optional when\r
54 > composing and replying to emails.  I found it unusual to be started in\r
55 > insert mode so I thought I'd make it optional as others may find this as\r
56 > well.\r
57 \r
58 Looks "Trivial" enough to look Good To Me (and patch apply)\r
59 \r
60 >\r
61 >     Ian\r
62 > ---\r
63 >  vim/notmuch.vim | 13 +++++++++++--\r
64 >  1 file changed, 11 insertions(+), 2 deletions(-)\r
65 >\r
66 > diff --git a/vim/notmuch.vim b/vim/notmuch.vim\r
67 > index 331e930..252f16b 100644\r
68 > --- a/vim/notmuch.vim\r
69 > +++ b/vim/notmuch.vim\r
70 > @@ -59,6 +59,7 @@ let s:notmuch_datetime_format_default = '%d.%m.%y %H:%M:%S'\r
71 >  let s:notmuch_reader_default = 'mutt -f %s'\r
72 >  let s:notmuch_sendmail_default = 'sendmail'\r
73 >  let s:notmuch_folders_count_threads_default = 0\r
74 > +let s:notmuch_compose_start_insert_default = 1\r
75 >  \r
76 >  function! s:new_file_buffer(type, fname)\r
77 >       exec printf('edit %s', a:fname)\r
78 > @@ -132,7 +133,9 @@ function! s:show_reply()\r
79 >       let b:compose_done = 0\r
80 >       call s:set_map(g:notmuch_compose_maps)\r
81 >       autocmd BufDelete <buffer> call s:on_compose_delete()\r
82 > -     startinsert!\r
83 > +     if g:notmuch_compose_start_insert\r
84 > +             startinsert!\r
85 > +     end\r
86 >  endfunction\r
87 >  \r
88 >  function! s:compose()\r
89 > @@ -140,7 +143,9 @@ function! s:compose()\r
90 >       let b:compose_done = 0\r
91 >       call s:set_map(g:notmuch_compose_maps)\r
92 >       autocmd BufDelete <buffer> call s:on_compose_delete()\r
93 > -     startinsert!\r
94 > +     if g:notmuch_compose_start_insert\r
95 > +             startinsert!\r
96 > +     end\r
97 >  endfunction\r
98 >  \r
99 >  function! s:show_info()\r
100 > @@ -428,6 +433,10 @@ function! s:set_defaults()\r
101 >               endif\r
102 >       endif\r
103 >  \r
104 > +     if !exists('g:notmuch_compose_start_insert')\r
105 > +             let g:notmuch_compose_start_insert = s:notmuch_compose_start_insert_default\r
106 > +     endif\r
107 > +\r
108 >       if !exists('g:notmuch_custom_search_maps') && exists('g:notmuch_rb_custom_search_maps')\r
109 >               let g:notmuch_custom_search_maps = g:notmuch_rb_custom_search_maps\r
110 >       endif\r
111 > -- \r
112 > 1.9.3\r
113 >\r
114 > _______________________________________________\r
115 > notmuch mailing list\r
116 > notmuch@notmuchmail.org\r
117 > http://notmuchmail.org/mailman/listinfo/notmuch\r