* mu4e: make the +/- in +tag, -tag only match at the beginning of words

This commit is contained in:
djcb 2013-03-16 17:58:17 +02:00
parent bb89278160
commit dbbcaf0f2b
1 changed files with 4 additions and 3 deletions

View File

@ -205,9 +205,10 @@ store your org-contacts."
tagstr)
(dolist (tag (split-string-and-unquote retag) taglist)
(cond ((string-match "\\+\\(.+\\)" tag)
(setq taglist (push (match-string 1 tag) taglist)))
((string-match "\\-\\(.+\\)" tag)
(cond
((string-match "\\<\\+\\(.+\\)" tag)
(setq taglist (push (match-string 1 tag) taglist)))
((string-match "\\<\\-\\(.+\\)" tag)
(setq taglist (delete (match-string 1 tag) taglist)))
(t
(setq taglist (push tag taglist)))))