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 73B46431FBC; Fri, 27 Nov 2009 06:03:00 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 Y89AuXT6jyOw; Fri, 27 Nov 2009 06:02:59 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 87E44431FAE; Fri, 27 Nov 2009 06:02:59 -0800 (PST) From: Carl Worth To: Jed Brown In-Reply-To: <1259271410-15336-1-git-send-email-jed@59A2.org> References: <87pr75q9va.fsf@yoom.home.cworth.org> <1259271410-15336-1-git-send-email-jed@59A2.org> Date: Fri, 27 Nov 2009 06:02:45 -0800 Message-ID: <87fx80m5fe.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] [PATCH 1/2] New function notmuch-search-operate-all: operate on all messages in the current query. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Fri, 27 Nov 2009 14:03:00 -0000 On Thu, 26 Nov 2009 22:36:49 +0100, Jed Brown wrote: > It is often convenient to change tags on several messages at once. This > function applies any number of tag whitespace-delimited tag > modifications to all messages matching the current query. Thanks Jed, I've applied both this and the following patch, (giving the consistent treatment to '+, '-', and 'a'). One or two minor comments: > + +tagname Add the tag `tagname' > + -tagname Remove the tag `tagname' > + > +Each character of the tag name may consist of alphanumeric > +characters as well as `_.+-'. Since this operates via a single call to "notmuch tag" you might mention here that all tag removals occur before any tag additions. > + (unless (string-match-p "^[\+\-][_\+\-\\w]+$" (car words)) > + (error "Action must be of the form `+thistag -that_tag'")) The error message has inconsistent "thistag" and "that_tag". But niether nit was worth blocking the commit on. Thanks again, -Carl