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 04207431FB6 for ; Wed, 18 Jan 2012 11:03:57 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] 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 Dqen26eW77Z1 for ; Wed, 18 Jan 2012 11:03:56 -0800 (PST) Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 77C4D431FAF for ; Wed, 18 Jan 2012 11:03:56 -0800 (PST) Received: from rocinante.cs.unb.ca ([131.202.153.155]) (authenticated bits=0) by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id q0IJ3qma023782 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Wed, 18 Jan 2012 15:03:52 -0400 Received: from bremner by rocinante.cs.unb.ca with local (Exim 4.77) (envelope-from ) id 1RnanY-0003aH-7U; Wed, 18 Jan 2012 15:03:52 -0400 From: David Bremner To: Austin Clements Subject: Re: RFC: tag macros In-Reply-To: <20120118183304.GC16740@mit.edu> References: <874nvtvzm5.fsf@convex-new.cs.unb.ca> <20120118183304.GC16740@mit.edu> User-Agent: Notmuch/0.10.2 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Wed, 18 Jan 2012 15:03:52 -0400 Message-ID: <87wr8o7rzb.fsf@rocinante.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Notmuch Mail 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: Wed, 18 Jan 2012 19:03:57 -0000 On Wed, 18 Jan 2012 13:33:04 -0500, Austin Clements wrote: > Quoth David Bremner on Jan 18 at 10:45 am: > What about simply providing an API that takes a bunch of tag > operations and applies them to the current thread/message/region? My main motivation here is (as you can probably see from the example) dealing with patches, and in that setting, tagging the whole thread is is almost never what you want. That aside, thread tagging is already there in search view, and I guess could be done by selecting the whole thread and tagging that region. I haven't really looked at how to apply tags to regions in notmuch-show-mode. Is there code around that does that? Or more generally iterate over messages in a region? d