1 Return-Path: <felipe.contreras@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 BE377431FD0
\r
6 for <notmuch@notmuchmail.org>; Sat, 2 Nov 2013 07:04:22 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id HyBFQkIhB9bf for <notmuch@notmuchmail.org>;
\r
17 Sat, 2 Nov 2013 07:04:18 -0700 (PDT)
\r
18 Received: from mail-ob0-f175.google.com (mail-ob0-f175.google.com
\r
19 [209.85.214.175]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id CF4FF429E37
\r
22 for <notmuch@notmuchmail.org>; Sat, 2 Nov 2013 07:03:26 -0700 (PDT)
\r
23 Received: by mail-ob0-f175.google.com with SMTP id wm4so5575023obc.20
\r
24 for <notmuch@notmuchmail.org>; Sat, 02 Nov 2013 07:03:26 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:cc:subject:date:message-id:in-reply-to:references;
\r
27 bh=hfrliAQJRvT4gMQX8cUffF9yJOuhSYapF4I7Y4QvZLI=;
\r
28 b=KWQEKu/oG3nwPsWHLXrXELTkXkbsc2e0DFAp96LQSNe42ZC6QATknTtcD5iunPP+JY
\r
29 tGIIxKTObZcqRMyUuEHyeLoR1oBQr/XllAP1ylOlg9fMAISlaZgN/K06UATeoJStd2/i
\r
30 omvZepVAOr7Qfn89u5dWt8j39DkxwPip+rlPuWlg6xT9zej0R2v0+KJpwf4GohRAcJHf
\r
31 bl8WpLB2wA0aFiJNrQH2kzRJO47ypbzBQITbmdl0ZjEF+Sps7EPyDTDegD8Fp9KvLT1B
\r
32 3VA9iIcGKk8XbB7OemlzNM57SxbBoGWlzZdzigynC1Pp6iafW9uV89FzWa2Nv6Lccodk
\r
34 X-Received: by 10.182.104.130 with SMTP id ge2mr6465043obb.6.1383401006412;
\r
35 Sat, 02 Nov 2013 07:03:26 -0700 (PDT)
\r
36 Received: from localhost (187-162-140-241.static.axtel.net. [187.162.140.241])
\r
37 by mx.google.com with ESMTPSA id
\r
38 xr8sm11584147obc.12.2013.11.02.07.03.24 for <multiple recipients>
\r
39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
40 Sat, 02 Nov 2013 07:03:25 -0700 (PDT)
\r
41 From: Felipe Contreras <felipe.contreras@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: [PATCH 20/21] vim: check compose is done on delete
\r
44 Date: Sat, 2 Nov 2013 07:55:53 -0600
\r
45 Message-Id: <1383400554-1832-21-git-send-email-felipe.contreras@gmail.com>
\r
46 X-Mailer: git-send-email 1.8.4.2+fc1
\r
47 In-Reply-To: <1383400554-1832-1-git-send-email-felipe.contreras@gmail.com>
\r
48 References: <1383400554-1832-1-git-send-email-felipe.contreras@gmail.com>
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Sat, 02 Nov 2013 14:04:23 -0000
\r
63 Not on unload, which happens when we switch buffers.
\r
65 Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
\r
67 vim/notmuch.vim | 6 +++---
\r
68 1 file changed, 3 insertions(+), 3 deletions(-)
\r
70 diff --git a/vim/notmuch.vim b/vim/notmuch.vim
\r
71 index 9109470..d7b310c 100644
\r
72 --- a/vim/notmuch.vim
\r
73 +++ b/vim/notmuch.vim
\r
74 @@ -67,7 +67,7 @@ function! s:new_file_buffer(type, fname)
\r
75 ruby $curbuf.init(VIM::evaluate('a:type'))
\r
78 -function! s:compose_unload()
\r
79 +function! s:on_compose_delete()
\r
83 @@ -126,7 +126,7 @@ function! s:show_reply()
\r
84 ruby open_reply get_message.mail
\r
85 let b:compose_done = 0
\r
86 call s:set_map(g:notmuch_compose_maps)
\r
87 - autocmd BufUnload <buffer> call s:compose_unload()
\r
88 + autocmd BufDelete <buffer> call s:on_compose_delete()
\r
92 @@ -134,7 +134,7 @@ function! s:compose()
\r
94 let b:compose_done = 0
\r
95 call s:set_map(g:notmuch_compose_maps)
\r
96 - autocmd BufUnload <buffer> call s:compose_unload()
\r
97 + autocmd BufDelete <buffer> call s:on_compose_delete()
\r