]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Escape tag queries performed by hello
authorAustin Clements <amdragon@MIT.EDU>
Fri, 26 Oct 2012 20:18:11 +0000 (16:18 -0400)
committerDavid Bremner <bremner@debian.org>
Sat, 27 Oct 2012 12:34:14 +0000 (09:34 -0300)
emacs/notmuch-hello.el

index 052aaebc02650ef8d005ce8008321149c050789b..be50aae75b9ab631b9417bb5432ac54ecaff25b0 100644 (file)
@@ -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)))