--- /dev/null
+Return-Path: <tomi.ollila@iki.fi>\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 6A6BC429E5B\r
+ for <notmuch@notmuchmail.org>; Tue, 31 Jan 2012 02:55:14 -0800 (PST)\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 tests=[none]\r
+ 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 Sz74dTeikVx0 for <notmuch@notmuchmail.org>;\r
+ Tue, 31 Jan 2012 02:55:13 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
+ by olra.theworths.org (Postfix) with ESMTP id B9056429E34\r
+ for <notmuch@notmuchmail.org>; Tue, 31 Jan 2012 02:55:13 -0800 (PST)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id 2255168056; Tue, 31 Jan 2012 12:55:16 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: David Edmondson <dme@dme.org>,\r
+ Dmitry Kurochkin <dmitry.kurochkin@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 1/2] emacs: If archiving the last message in a thread,\r
+ show the next thread.\r
+In-Reply-To: <cunzkd49nb7.fsf@hotblack-desiato.hh.sledj.net>\r
+References: <1327996914-9644-1-git-send-email-dme@dme.org>\r
+ <1327996914-9644-2-git-send-email-dme@dme.org>\r
+ <m2r4yg2rfl.fsf@guru.guru-group.fi> <871uqgntjz.fsf@gmail.com>\r
+ <m2mx942pgv.fsf@guru.guru-group.fi>\r
+ <cunzkd49nb7.fsf@hotblack-desiato.hh.sledj.net>\r
+User-Agent: Notmuch/0.11+146~geb6dc33 (http://notmuchmail.org) Emacs/23.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Tue, 31 Jan 2012 12:55:16 +0200\r
+Message-ID: <m2k4482lbf.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\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: Tue, 31 Jan 2012 10:55:14 -0000\r
+\r
+On Tue, 31 Jan 2012 10:30:20 +0000, David Edmondson <dme@dme.org> wrote:\r
+> On Tue, 31 Jan 2012 11:25:36 +0200, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
+> > I like David's alternative suggestion (in IRC) where cursor is left at\r
+> > the end of buffer in case last message is archived with 'a'.\r
+> \r
+> Unless the cursor is already at the end of the buffer, in which case it\r
+> would do the 'next thread' dance (i.e. it behaves like 'space' in that\r
+> respect).\r
+\r
+I think I (and Jameson) don't want that behaviour -- therefore we need\r
+functionality (somewhat) analogous to this:\r
+\r
+(defun notmuch-show-advance-and-archive ()\r
+"..."\r
+ (interactive)\r
+ (if (notmuch-show-advance)\r
+ (notmuch-show-archive-thread-then-next)))\r
+\r
+So we can easily rebind to the version which doesn't \r
+do the '...then-next' magic...\r
+\r
+Tomi\r
+\r
+\r