From: Jed Brown <jed@59A2.org>
To: cworth@cworth.org
Cc: notmuch@notmuchmail.org
Subject: [PATCH] More portable and easier to read regex in notmuch-search-operate-all
Date: Sat, 28 Nov 2009 20:51:13 +0100 [thread overview]
Message-ID: <1259437873-20197-1-git-send-email-jed@59A2.org> (raw)
In-Reply-To: <87fx80m5fe.fsf@yoom.home.cworth.org>
The former one worked in 23.1.50.1 but not in 23.1.1.
Signed-off-by: Jed Brown <jed@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
next prev parent reply other threads:[~2009-11-28 19:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-22 20:12 [PATCH] New function notmuch-search-operate-all: operate on all messages in the current query Jed Brown
2009-11-23 4:14 ` Carl Worth
2009-11-23 13:07 ` Jed Brown
2009-11-26 21:00 ` Carl Worth
2009-11-26 21:36 ` [PATCH 1/2] " Jed Brown
2009-11-26 21:36 ` [PATCH 2/2] notmuch-search-add/remove-tag: restrict to messages in " Jed Brown
2009-11-27 14:02 ` [PATCH 1/2] New function notmuch-search-operate-all: operate on all messages in the " Carl Worth
2009-11-27 14:32 ` Jed Brown
2009-11-28 5:48 ` Carl Worth
2009-11-28 19:51 ` Jed Brown [this message]
2009-11-28 19:58 ` [PATCH] More portable and easier to read regex in notmuch-search-operate-all Keith Packard
2009-11-28 20:01 ` Carl Worth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1259437873-20197-1-git-send-email-jed@59A2.org \
--to=jed@59a2.org \
--cc=cworth@cworth.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).