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 14698421197 for ; Tue, 17 Jan 2012 12:10:45 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 kyxQgSG1E6wv for ; Tue, 17 Jan 2012 12:10:44 -0800 (PST) Received: from mail-qw0-f46.google.com (mail-qw0-f46.google.com [209.85.216.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 82DB3421192 for ; Tue, 17 Jan 2012 12:10:44 -0800 (PST) Received: by qadc10 with SMTP id c10so1216254qad.5 for ; Tue, 17 Jan 2012 12:10:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; bh=OkoAYgNPN0kKDcAhIsMKlu7ACzVOCTAvj1s11Mvjquk=; b=N+xPBIy2eaOYDlSfzhVG/xQDZsZQXw/zuryWn262v3TMZH9K3xFA7Eb/gRBMMyV/Qx oKKSljA0aEnaNp/PImpfbXmjmsZyZVOkDWKhXkzj7iROHGG9ce48q+LO5BnI0RxyC3aQ V1/sSZ4sFzuyoHOKmg2tX94RoFjVhtkdWGnGk= Received: by 10.229.135.9 with SMTP id l9mr6880686qct.66.1326831043956; Tue, 17 Jan 2012 12:10:43 -0800 (PST) Received: from localhost (luw017.wlan.gapsa.upenn.edu. [128.91.230.146]) by mx.google.com with ESMTPS id m20sm45603617qaj.14.2012.01.17.12.10.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jan 2012 12:10:43 -0800 (PST) From: Aaron Ecay To: Jameson Graef Rollins , Notmuch Mail Subject: Re: [PATCH 1/6] emacs: break up notmuch-show-archive-thread-internal into two generally useful functions In-Reply-To: <1326823531-14549-1-git-send-email-jrollins@finestructure.net> References: <871uqy19yo.fsf@servo.finestructure.net> <1326823531-14549-1-git-send-email-jrollins@finestructure.net> User-Agent: Notmuch/0.11+62~ge41b0d3 (http://notmuchmail.org) Emacs/24.0.92.1 (i386-apple-darwin10.8.0) Date: Tue, 17 Jan 2012 15:10:40 -0500 Message-ID: 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: Tue, 17 Jan 2012 20:10:45 -0000 On Tue, 17 Jan 2012 10:05:26 -0800, Jameson Graef Rollins wrote: > Brake up notmuch-show-archive-thread-internal into two new functions: > > notmuch-show-tag-thread-internal: applies a tag to all messages in > thread. If option remove flag is t, tags will be removed instead of > added. > > notmuch-show-next-thread: moves to the next thread in the search > result. If given a prefix, will show the next result, otherwise will > just move to it in the search view. > > Two new interactive functions, notmuch-show-{add,remove}-tag-thread, > are also added. Together, these provide a better suit of thread > tagging and navigation tools. > > The higher level thread archiving functions are modified to use these > new functions. > --- > emacs/notmuch-show.el | 33 ++++++++++++++++++++++++++------- > 1 files changed, 26 insertions(+), 7 deletions(-) > > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el > index 03c1f6b..3625afd 100644 > --- a/emacs/notmuch-show.el > +++ b/emacs/notmuch-show.el > @@ -1421,12 +1421,29 @@ argument, hide all of the messages." > (interactive) > (backward-button 1)) > > -(defun notmuch-show-archive-thread-internal (show-next) > - ;; Remove the tag from the current set of messages. > +(defun notmuch-show-tag-thread-internal (tag &optional remove) > + ;; Add tag to the current set of messages. If the remove switch is > + ;; given, tags will be removed instead of added. This should be a docstring instead of a comment. (This applies equally to the old version....) -- Aaron Ecay