diff options
author | David Edmondson <dme@dme.org> | 2010-03-23 07:04:34 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-04-03 12:31:49 -0700 |
commit | e33b73819a8a1005583cb3de69759172aacf98ba (patch) | |
tree | 97c506ff2276d4cf5831c85f8473e4882cfce8db | |
parent | d3884a5984c26159169d58b9cc8fb2a137fb48a2 (diff) |
emacs/notmuch.el: Improve tag highlighting in search mode
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.
-rw-r--r-- | emacs/notmuch.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 439303a..050aacb 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -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 |