--- /dev/null
+Return-Path: <felipe.contreras@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id A8F71431FD0\r
+ for <notmuch@notmuchmail.org>; Sat, 2 Nov 2013 07:04:19 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id zU2X7WaG2q0j for <notmuch@notmuchmail.org>;\r
+ Sat, 2 Nov 2013 07:04:15 -0700 (PDT)\r
+Received: from mail-oa0-f54.google.com (mail-oa0-f54.google.com\r
+ [209.85.219.54]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 732FA429E35\r
+ for <notmuch@notmuchmail.org>; Sat, 2 Nov 2013 07:03:24 -0700 (PDT)\r
+Received: by mail-oa0-f54.google.com with SMTP id o20so5697911oag.27\r
+ for <notmuch@notmuchmail.org>; Sat, 02 Nov 2013 07:03:24 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
+ bh=xKRPWfGNXjHRubWh3Gq1lxOi+XlB8TdPjFoqIeSVGao=;\r
+ b=AVXtMMwudHhTzcbNlVNWf8ToDqdwpfcGQPyiig0O1E+Fr55EGVVl/G406D/swd3p8B\r
+ Lsr6COgNvzndH3wsKq6t59D0Ufyis4y1YUkA7xyBZgbgxVS7HJ5XDBXHdcKUzlN95peL\r
+ IMUFo7JzURPoTBPUMFFb4ZEEt7BJZ0PDyPM0vqitQVzly3APqB18Ow7yQgmgHxi+5Kms\r
+ tB6mtxyuqt3FDgPEmt4x+vtQEitGFxPetL0PckvEn/APLAgQAsessxAOrkEQ5iRkrqOq\r
+ qGKKZSgfCuBSNKXv3/6AY4dSUPSvv30WK6qLwYMdBlW6iwtr0Ky6vhLRHy9M8CoFbuJy\r
+ Pcfw==\r
+X-Received: by 10.182.72.234 with SMTP id g10mr6502989obv.21.1383401003998;\r
+ Sat, 02 Nov 2013 07:03:23 -0700 (PDT)\r
+Received: from localhost (187-162-140-241.static.axtel.net. [187.162.140.241])\r
+ by mx.google.com with ESMTPSA id\r
+ jz7sm24739781oeb.4.2013.11.02.07.03.22 for <multiple recipients>\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sat, 02 Nov 2013 07:03:23 -0700 (PDT)\r
+From: Felipe Contreras <felipe.contreras@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 19/21] vim: remove unnecessary buffer queue\r
+Date: Sat, 2 Nov 2013 07:55:52 -0600\r
+Message-Id: <1383400554-1832-20-git-send-email-felipe.contreras@gmail.com>\r
+X-Mailer: git-send-email 1.8.4.2+fc1\r
+In-Reply-To: <1383400554-1832-1-git-send-email-felipe.contreras@gmail.com>\r
+References: <1383400554-1832-1-git-send-email-felipe.contreras@gmail.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 02 Nov 2013 14:04:20 -0000\r
+\r
+Vim handles the buffers just fine: when one is deleted, we go to the\r
+previous one.\r
+\r
+Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>\r
+---\r
+ vim/notmuch.vim | 12 ++----------\r
+ 1 file changed, 2 insertions(+), 10 deletions(-)\r
+\r
+diff --git a/vim/notmuch.vim b/vim/notmuch.vim\r
+index fc9eaa2..9109470 100644\r
+--- a/vim/notmuch.vim\r
++++ b/vim/notmuch.vim\r
+@@ -65,7 +65,6 @@ function! s:new_file_buffer(type, fname)\r
+ execute printf('set filetype=notmuch-%s', a:type)\r
+ execute printf('set syntax=notmuch-%s', a:type)\r
+ ruby $curbuf.init(VIM::evaluate('a:type'))\r
+- ruby $buf_queue.push($curbuf.number)\r
+ endfunction\r
+ \r
+ function! s:compose_unload()\r
+@@ -268,13 +267,8 @@ endfunction\r
+ \r
+ function! s:kill_this_buffer()\r
+ ruby << EOF\r
+- if $buf_queue.size > 1\r
+- $curbuf.close\r
+- VIM::command("bdelete!")\r
+- $buf_queue.pop\r
+- b = $buf_queue.last\r
+- VIM::command("buffer #{b}") if b\r
+- end\r
++ $curbuf.close\r
++ VIM::command("bdelete!")\r
+ EOF\r
+ endfunction\r
+ \r
+@@ -293,7 +287,6 @@ function! s:new_buffer(type)\r
+ execute printf('set filetype=notmuch-%s', a:type)\r
+ execute printf('set syntax=notmuch-%s', a:type)\r
+ ruby $curbuf.init(VIM::evaluate('a:type'))\r
+- ruby $buf_queue.push($curbuf.number)\r
+ endfunction\r
+ \r
+ function! s:set_menu_buffer()\r
+@@ -471,7 +464,6 @@ ruby << EOF\r
+ $db_name = nil\r
+ $email = $email_name = $email_address = nil\r
+ $searches = []\r
+- $buf_queue = []\r
+ $threads = []\r
+ $messages = []\r
+ $config = {}\r
+-- \r
+1.8.4.2+fc1\r
+\r