aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Dmitry Kurochkin <dmitry.kurochkin@gmail.com>2012-02-05 11:13:50 +0400
committerGravatar David Bremner <bremner@debian.org>2012-02-08 11:19:23 -0400
commit26fce4ae605d6315bd2732ba3607ac30138e67b4 (patch)
treed16ba0cb156872e1c25650fa045cc130cdab6152 /emacs
parent904eafaefc356b654842ff59de6afc17f24ccf17 (diff)
emacs: relax tag syntax check in `notmuch-tag' function
The tag syntax check in `notmuch-tag' function was too strict and did not allow nmbug tags with "::". Since the check is done for all tagging operations in Emacs UI, this basically means that no nmbug tags can be changed. The patch relaxes the tag syntax check to allow any tag names that do not include whitespace characters.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 862d9e8f..b06d8a11 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -550,7 +550,7 @@ notmuch-after-tag-hook will be run."
;; Perform some validation
(when (null tags) (error "No tags given"))
(mapc (lambda (tag)
- (unless (string-match-p "^[-+][-+_.[:word:]]+$" tag)
+ (unless (string-match-p "^[-+]\\S-+$" tag)
(error "Tag must be of the form `+this_tag' or `-that_tag'")))
tags)
(run-hooks 'notmuch-before-tag-hook)