Re: [PATCH 21/21] vim: add help file
[notmuch-archives.git] / b2 / a33549af33983ccc47f8a567d17882c9ae4865
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 A8F71431FD0\r
6         for <notmuch@notmuchmail.org>; Sat,  2 Nov 2013 07:04:19 -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.799\r
10 X-Spam-Level: \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 zU2X7WaG2q0j for <notmuch@notmuchmail.org>;\r
17         Sat,  2 Nov 2013 07:04:15 -0700 (PDT)\r
18 Received: from mail-oa0-f54.google.com (mail-oa0-f54.google.com\r
19         [209.85.219.54]) (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 732FA429E35\r
22         for <notmuch@notmuchmail.org>; Sat,  2 Nov 2013 07:03:24 -0700 (PDT)\r
23 Received: by mail-oa0-f54.google.com with SMTP id o20so5697911oag.27\r
24         for <notmuch@notmuchmail.org>; Sat, 02 Nov 2013 07:03:24 -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=xKRPWfGNXjHRubWh3Gq1lxOi+XlB8TdPjFoqIeSVGao=;\r
28         b=AVXtMMwudHhTzcbNlVNWf8ToDqdwpfcGQPyiig0O1E+Fr55EGVVl/G406D/swd3p8B\r
29         Lsr6COgNvzndH3wsKq6t59D0Ufyis4y1YUkA7xyBZgbgxVS7HJ5XDBXHdcKUzlN95peL\r
30         IMUFo7JzURPoTBPUMFFb4ZEEt7BJZ0PDyPM0vqitQVzly3APqB18Ow7yQgmgHxi+5Kms\r
31         tB6mtxyuqt3FDgPEmt4x+vtQEitGFxPetL0PckvEn/APLAgQAsessxAOrkEQ5iRkrqOq\r
32         qGKKZSgfCuBSNKXv3/6AY4dSUPSvv30WK6qLwYMdBlW6iwtr0Ky6vhLRHy9M8CoFbuJy\r
33         Pcfw==\r
34 X-Received: by 10.182.72.234 with SMTP id g10mr6502989obv.21.1383401003998;\r
35         Sat, 02 Nov 2013 07:03:23 -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         jz7sm24739781oeb.4.2013.11.02.07.03.22 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:23 -0700 (PDT)\r
41 From: Felipe Contreras <felipe.contreras@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH 19/21] vim: remove unnecessary buffer queue\r
44 Date: Sat,  2 Nov 2013 07:55:52 -0600\r
45 Message-Id: <1383400554-1832-20-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
51 Precedence: list\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:20 -0000\r
62 \r
63 Vim handles the buffers just fine: when one is deleted, we go to the\r
64 previous one.\r
65 \r
66 Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>\r
67 ---\r
68  vim/notmuch.vim | 12 ++----------\r
69  1 file changed, 2 insertions(+), 10 deletions(-)\r
70 \r
71 diff --git a/vim/notmuch.vim b/vim/notmuch.vim\r
72 index fc9eaa2..9109470 100644\r
73 --- a/vim/notmuch.vim\r
74 +++ b/vim/notmuch.vim\r
75 @@ -65,7 +65,6 @@ function! s:new_file_buffer(type, fname)\r
76         execute printf('set filetype=notmuch-%s', a:type)\r
77         execute printf('set syntax=notmuch-%s', a:type)\r
78         ruby $curbuf.init(VIM::evaluate('a:type'))\r
79 -       ruby $buf_queue.push($curbuf.number)\r
80  endfunction\r
81  \r
82  function! s:compose_unload()\r
83 @@ -268,13 +267,8 @@ endfunction\r
84  \r
85  function! s:kill_this_buffer()\r
86  ruby << EOF\r
87 -       if $buf_queue.size > 1\r
88 -               $curbuf.close\r
89 -               VIM::command("bdelete!")\r
90 -               $buf_queue.pop\r
91 -               b = $buf_queue.last\r
92 -               VIM::command("buffer #{b}") if b\r
93 -       end\r
94 +       $curbuf.close\r
95 +       VIM::command("bdelete!")\r
96  EOF\r
97  endfunction\r
98  \r
99 @@ -293,7 +287,6 @@ function! s:new_buffer(type)\r
100         execute printf('set filetype=notmuch-%s', a:type)\r
101         execute printf('set syntax=notmuch-%s', a:type)\r
102         ruby $curbuf.init(VIM::evaluate('a:type'))\r
103 -       ruby $buf_queue.push($curbuf.number)\r
104  endfunction\r
105  \r
106  function! s:set_menu_buffer()\r
107 @@ -471,7 +464,6 @@ ruby << EOF\r
108         $db_name = nil\r
109         $email = $email_name = $email_address = nil\r
110         $searches = []\r
111 -       $buf_queue = []\r
112         $threads = []\r
113         $messages = []\r
114         $config = {}\r
115 -- \r
116 1.8.4.2+fc1\r
117 \r