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 C050F40D1D0 for ; Sat, 7 Jun 2014 06:38:41 -0700 (PDT) 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 G0P-nSQeTmd7 for ; Sat, 7 Jun 2014 06:38:34 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by olra.theworths.org (Postfix) with ESMTP id 5237B40D1CF for ; Sat, 7 Jun 2014 06:38:34 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id DBFF21000B3; Sat, 7 Jun 2014 16:38:29 +0300 (EEST) From: Tomi Ollila To: Mark Walters , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: search archive tweak In-Reply-To: <1402058914-16070-1-git-send-email-markwalters1009@gmail.com> References: <87bnv92521.fsf@inf-8660.int-evry.fr> <1402058914-16070-1-git-send-email-markwalters1009@gmail.com> User-Agent: Notmuch/0.18+28~gcecaba1 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain 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: Sat, 07 Jun 2014 13:38:42 -0000 On Fri, Jun 06 2014, Mark Walters wrote: > notmuch-search-archive-thread moves to the next line after tagging. In > the normal case this makes sense, but if the region is active, it tags > the whole region and then it doesn't really. Thus only move to the > next line if region is not active. > --- Looks good, although I have no idea how to test this ;) Tomi > > In response to the request in the parent message. > > Best wishes > > Mark > > emacs/notmuch.el | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/emacs/notmuch.el b/emacs/notmuch.el > index f6bf9c8..2a9876f 100644 > --- a/emacs/notmuch.el > +++ b/emacs/notmuch.el > @@ -580,7 +580,8 @@ (defun notmuch-search-archive-thread (&optional unarchive beg end) > (when notmuch-archive-tags > (notmuch-search-tag > (notmuch-tag-change-list notmuch-archive-tags unarchive) beg end)) > - (notmuch-search-next-thread)) > + (when (eq beg end) > + (notmuch-search-next-thread))) > > (defun notmuch-search-update-result (result &optional pos) > "Replace the result object of the thread at POS (or point) by > -- > 1.7.10.4 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch