]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch.el
More portable and easier to read regex in notmuch-search-operate-all
[notmuch] / notmuch.el
index 96c5d965e1dcf35a6061c307ca5a19022cc292b3..65473ba70911fd0ab5bdc6e0f2e05b71dd72b2a9 100644 (file)
@@ -1152,7 +1152,7 @@ characters as well as `_.+-'.
     (let ((words action-split))
       (when (null words) (error "No operation given"))
       (while words
-       (unless (string-match-p "^[\+\-][_\+\-\\w]+$" (car words))
+       (unless (string-match-p "^[-+][-+_.[:word:]]+$" (car words))
          (error "Action must be of the form `+thistag -that_tag'"))
        (setq words (cdr words))))
     (apply 'notmuch-call-notmuch-process "tag"