[PATCH 3/3] emacs: Escape tag queries suggested by tab completion

Subject: [PATCH 3/3] emacs: Escape tag queries suggested by tab completion

Date: Fri, 26 Oct 2012 16:18:12 -0400

To: notmuch@notmuchmail.org

Cc:

From: Austin Clements


---
 emacs/notmuch.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index a8a85ce..60e8bf9 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -917,7 +917,7 @@ PROMPT is the string to prompt with."
 	(append (list "folder:" "thread:" "id:" "date:" "from:" "to:"
 		      "subject:" "attachment:")
 		(mapcar (lambda (tag)
-			  (concat "tag:" tag))
+			  (concat "tag:" (notmuch-escape-boolean-term tag)))
 			(process-lines notmuch-command "search" "--output=tags" "*")))))
     (let ((keymap (copy-keymap minibuffer-local-map))
 	  (minibuffer-completion-table
-- 
1.7.10


Thread: