From 2ba4ba43ae6d90763eaab4039d59350e265e8860 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Tue, 31 Jan 2012 12:55:16 +0200 Subject: [PATCH] Re: [PATCH 1/2] emacs: If archiving the last message in a thread, show the next thread. --- a4/13179a765777ce179974afee0e7368683360dd | 79 +++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 a4/13179a765777ce179974afee0e7368683360dd diff --git a/a4/13179a765777ce179974afee0e7368683360dd b/a4/13179a765777ce179974afee0e7368683360dd new file mode 100644 index 000000000..cf4b6a747 --- /dev/null +++ b/a4/13179a765777ce179974afee0e7368683360dd @@ -0,0 +1,79 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 6A6BC429E5B + for ; Tue, 31 Jan 2012 02:55:14 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id Sz74dTeikVx0 for ; + Tue, 31 Jan 2012 02:55:13 -0800 (PST) +Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66]) + by olra.theworths.org (Postfix) with ESMTP id B9056429E34 + for ; Tue, 31 Jan 2012 02:55:13 -0800 (PST) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id 2255168056; Tue, 31 Jan 2012 12:55:16 +0200 (EET) +From: Tomi Ollila +To: David Edmondson , + Dmitry Kurochkin , notmuch@notmuchmail.org +Subject: Re: [PATCH 1/2] emacs: If archiving the last message in a thread, + show the next thread. +In-Reply-To: +References: <1327996914-9644-1-git-send-email-dme@dme.org> + <1327996914-9644-2-git-send-email-dme@dme.org> + <871uqgntjz.fsf@gmail.com> + + +User-Agent: Notmuch/0.11+146~geb6dc33 (http://notmuchmail.org) Emacs/23.3.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 31 Jan 2012 10:55:14 -0000 + +On Tue, 31 Jan 2012 10:30:20 +0000, David Edmondson wrote: +> On Tue, 31 Jan 2012 11:25:36 +0200, Tomi Ollila wrote: +> > I like David's alternative suggestion (in IRC) where cursor is left at +> > the end of buffer in case last message is archived with 'a'. +> +> Unless the cursor is already at the end of the buffer, in which case it +> would do the 'next thread' dance (i.e. it behaves like 'space' in that +> respect). + +I think I (and Jameson) don't want that behaviour -- therefore we need +functionality (somewhat) analogous to this: + +(defun notmuch-show-advance-and-archive () +"..." + (interactive) + (if (notmuch-show-advance) + (notmuch-show-archive-thread-then-next))) + +So we can easily rebind to the version which doesn't +do the '...then-next' magic... + +Tomi + + -- 2.26.2