From e33b73819a8a1005583cb3de69759172aacf98ba Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Tue, 23 Mar 2010 07:04:34 +0000 Subject: [PATCH] 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. --- emacs/notmuch.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 439303a7..050aacb9 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 -- 2.43.0