]> git.notmuchmail.org Git - notmuch/commitdiff
emacs/notmuch.el: Improve tag highlighting in search mode
authorDavid Edmondson <dme@dme.org>
Tue, 23 Mar 2010 07:04:34 +0000 (07:04 +0000)
committerCarl Worth <cworth@cworth.org>
Sat, 3 Apr 2010 19:31:49 +0000 (12:31 -0700)
Assume that tags never include an opening bracket, and hence improve
the regular expression used to highlight them. This avoids false
matches where the 'from' address of a thread participant includes an
opening bracket.

emacs/notmuch.el

index 439303a77d3a6d3b7de679f2facb7c9b97aefe59..050aacb9911e1746e2e3dabe6a0dbd6ae322680f 100644 (file)
@@ -1359,7 +1359,7 @@ Complete list of currently available key bindings:
   (setq buffer-read-only t)
   (if (not notmuch-tag-face-alist)
       (add-to-list 'notmuch-search-font-lock-keywords (list
-               "(\\([^)]*\\))$" '(1  'notmuch-tag-face)))
+               "(\\([^()]*\\))$" '(1  'notmuch-tag-face)))
     (let ((notmuch-search-tags (mapcar 'car notmuch-tag-face-alist)))
       (loop for notmuch-search-tag  in notmuch-search-tags
            do (add-to-list 'notmuch-search-font-lock-keywords (list