mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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 <jed@59A2.org> Tested-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
64c8d6227a
commit
0a41c34310
1 changed files with 1 additions and 1 deletions
|
@ -1152,7 +1152,7 @@ characters as well as `_.+-'.
|
||||||
(let ((words action-split))
|
(let ((words action-split))
|
||||||
(when (null words) (error "No operation given"))
|
(when (null words) (error "No operation given"))
|
||||||
(while words
|
(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'"))
|
(error "Action must be of the form `+thistag -that_tag'"))
|
||||||
(setq words (cdr words))))
|
(setq words (cdr words))))
|
||||||
(apply 'notmuch-call-notmuch-process "tag"
|
(apply 'notmuch-call-notmuch-process "tag"
|
||||||
|
|
Loading…
Reference in a new issue