mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
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.
This commit is contained in:
parent
904eafaefc
commit
26fce4ae60
1 changed files with 1 additions and 1 deletions
|
@ -550,7 +550,7 @@ notmuch-after-tag-hook will be run."
|
||||||
;; Perform some validation
|
;; Perform some validation
|
||||||
(when (null tags) (error "No tags given"))
|
(when (null tags) (error "No tags given"))
|
||||||
(mapc (lambda (tag)
|
(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'")))
|
(error "Tag must be of the form `+this_tag' or `-that_tag'")))
|
||||||
tags)
|
tags)
|
||||||
(run-hooks 'notmuch-before-tag-hook)
|
(run-hooks 'notmuch-before-tag-hook)
|
||||||
|
|
Loading…
Reference in a new issue