On Fri, 27 Nov 2009 06:02:45 -0800, Carl Worth <cworth@cworth.org> wrote: > Since this operates via a single call to "notmuch tag" you might mention > here that all tag removals occur before any tag additions. I was unaware of this point, if I do notmuch tag -inbox +star tag:inbox some-expression I will have starred nothing? > > + (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". That was somewhat intentional to illustrate that non-alphanumeric characters could be used in tags. Should the alphabet for tags be based on a whitelist or blacklist? It would be rather hard to validate a tag operation when there is no assumption/restriction on the alphabet. Jed