From: Jed Brown Date: Sat, 28 Nov 2009 19:51:13 +0000 (+0100) Subject: More portable and easier to read regex in notmuch-search-operate-all X-Git-Tag: 0.1~294 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0a41c34310f6d27a6a21fae75e94a11ed204d6ea;p=notmuch.git More portable and easier to read regex in notmuch-search-operate-all The former one worked in 23.1.50.1 but not in 23.1.1. Signed-off-by: Jed Brown Tested-by: Keith Packard --- diff --git a/notmuch.el b/notmuch.el index 96c5d965..65473ba7 100644 --- a/notmuch.el +++ b/notmuch.el @@ -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"