--- /dev/null
+Return-Path: <imain@redhat.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 DB453431FCF\r
+ for <notmuch@notmuchmail.org>; Fri, 10 Oct 2014 11:22:09 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 iwZTgOa6q-az for <notmuch@notmuchmail.org>;\r
+ Fri, 10 Oct 2014 11:22:01 -0700 (PDT)\r
+Received: from cmta5.telus.net (cmta5.telus.net [209.171.16.78])\r
+ by olra.theworths.org (Postfix) with ESMTP id BB4FE431FCB\r
+ for <notmuch@notmuchmail.org>; Fri, 10 Oct 2014 11:22:01 -0700 (PDT)\r
+Received: from ovo.mains.priv ([207.102.88.62]) by cmta5.telus.net with TELUS\r
+ id 1WN01p00A1LiWEf01WN08h; Fri, 10 Oct 2014 12:22:01 -0600\r
+X-Authority-Analysis: v=2.0 cv=JvIvWrEC c=1 sm=2\r
+ a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=S-IsBHyFrF4A:10 a=IkcTkHD0fZMA:10\r
+ a=tsa3CZZnAAAA:8 a=7343-z1_AAAA:8 a=AqL7Eh603jEDRpnR9qwA:9\r
+ a=QEXdDO2ut3YA:10\r
+ a=P87eogJZi2UA:10 a=0c-eHkXYtrgA:10 a=EcQDfIwDZEqJA1f7rVUV8Q==:117\r
+X-Telus-Outbound-IP: 207.102.88.62\r
+Received: from ovo.mains.priv (localhost.localdomain [127.0.0.1])\r
+ by ovo.mains.priv (8.14.8/8.14.8) with ESMTP id s9AILwbi025236;\r
+ Fri, 10 Oct 2014 11:21:58 -0700\r
+Received: (from imain@localhost)\r
+ by ovo.mains.priv (8.14.8/8.14.8/Submit) id s9AILvBL025235;\r
+ Fri, 10 Oct 2014 11:21:57 -0700\r
+X-Authentication-Warning: ovo.mains.priv: imain set sender to imain@redhat.com\r
+ using -f\r
+Date: Fri, 10 Oct 2014 11:21:57 -0700\r
+From: Ian Main <imain@stemwinder.org>\r
+To: Franz Fellner <alpine.art.de@gmail.com>\r
+Message-ID: <543823c57b0e9_46ad163fe8863@ovo.mains.priv.notmuch>\r
+In-Reply-To: <20141010112122.GB28601@TP_L520.localdomain>\r
+References: <1412579537-7921-1-git-send-email-imain@stemwinder.org>\r
+ <1412618116-27586-1-git-send-email-imain@stemwinder.org>\r
+ <20141010112122.GB28601@TP_L520.localdomain>\r
+Subject: Re: [PATCH] VIM: Improve moving between messages in a thread\r
+Mime-Version: 1.0\r
+Content-Type: text/plain;\r
+ charset=utf-8\r
+Content-Transfer-Encoding: 7bit\r
+Cc: notmuch@notmuchmail.org\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: Fri, 10 Oct 2014 18:22:10 -0000\r
+\r
+Franz Fellner wrote:\r
+> Patch works fine for me. It also would be nice to have a "move to next\r
+> unread message" function.\r
+> Most beautiful would be a treeview of the thread structure. Currently\r
+> threads are rendered as plain list, so you can't immediately see and\r
+> jump to the quoted mail. Bower IMHO uses the best approach here. I tried\r
+> emacs treeview but did not really like it (partly because I failed badly\r
+> to implement a solution that shows treeview by default). Indent the\r
+> whole large Message view IMHO also is not a good (at least to me)\r
+> solution.\r
+\r
+Yeah I agree. This is a start anyway. As I use the vim client more my\r
+plan is to just keep fixing things that get in my way.\r
+\r
+Thanks for catching the vim_puts. :)\r
+\r
+Thanks for you're reviews!!\r
+\r
+ Ian\r
+\r
+> On Mon, 6 Oct 2014 10:55:16 -0700, Ian Main <imain@stemwinder.org> wrote:\r
+> > @@ -113,6 +114,22 @@ EOF\r
+> > call s:kill_this_buffer()\r
+> > endfunction\r
+> > \r
+> > +function! s:show_prev_msg()\r
+> > +ruby << EOF\r
+> > + r, c = $curwin.cursor\r
+> > + n = $curbuf.line_number\r
+> > + i = $messages.index { |m| n >= m.start && n <= m.end }\r
+> > + m = $messages[i - 1] if i > 0\r
+> \r
+> This one\r
+> > + vim_puts ("messages index is #{i} and m is #{m}")\r
+> was missed ;)\r
+> \r
+> > + if m\r
+> > + r = m.body_start + 1\r
+> > + scrolloff = VIM::evaluate("&scrolloff")\r
+> > + VIM::command("normal #{m.start + scrolloff}zt")\r
+> > + $curwin.cursor = r + scrolloff, c\r
+> > + end\r
+> > +EOF\r
+> > +endfunction\r
+> > +\r
+> > function! s:show_next_msg()\r
+> > ruby << EOF\r
+> > r, c = $curwin.cursor\r
+> > @@ -121,8 +138,9 @@ ruby << EOF\r
+> > m = $messages[i + 1]\r
+> > if m\r
+> > r = m.body_start + 1\r
+> > - VIM::command("normal #{m.start}zt")\r
+> > - $curwin.cursor = r, c\r
+> > + scrolloff = VIM::evaluate("&scrolloff")\r
+> > + VIM::command("normal #{m.start + scrolloff}zt")\r
+> > + $curwin.cursor = r + scrolloff, c\r
+> > end\r
+> > EOF\r
+> > endfunction\r
+> > -- \r
+> > 1.9.3\r
+> > \r
+> > _______________________________________________\r
+> > notmuch mailing list\r
+> > notmuch@notmuchmail.org\r
+> > http://notmuchmail.org/mailman/listinfo/notmuch\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r
+\r
+\r