From: Austin Clements <amdragon@MIT.EDU>
Date: Fri, 26 Oct 2012 20:18:11 +0000 (-0400)
Subject: emacs: Escape tag queries performed by hello
X-Git-Tag: 0.15_rc1~207
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=b235850f9be663e91a44a244c0c5979d95e4213e;p=obsolete%2Fnotmuch-old

emacs: Escape tag queries performed by hello
---

diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 052aaebc..be50aae7 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -500,7 +500,7 @@ Complete list of currently available key bindings:
 (defun notmuch-hello-generate-tag-alist (&optional hide-tags)
   "Return an alist from tags to queries to display in the all-tags section."
   (mapcar (lambda (tag)
-	    (cons tag (format "tag:%s" tag)))
+	    (cons tag (concat "tag:" (notmuch-escape-boolean-term tag))))
 	  (notmuch-remove-if-not
 	   (lambda (tag)
 	     (not (member tag hide-tags)))