[notmuch] [PATCH] More portable and easier to read regex in notmuch-search-operate-all
Jed Brown
jed at 59A2.org
Sat Nov 28 11:51:13 PST 2009
The former one worked in 23.1.50.1 but not in 23.1.1.
Signed-off-by: Jed Brown <jed at 59A2.org>
---
notmuch.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/notmuch.el b/notmuch.el
index 96c5d96..65473ba 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"
--
1.6.5.3
More information about the notmuch
mailing list