]> git.notmuchmail.org Git - notmuch/commitdiff
Reintroduce patch to quote args in notmuch-show to facilitate remote use
authorJesse Rosenthal <jrosenthal@jhu.edu>
Wed, 21 Apr 2010 21:22:08 +0000 (17:22 -0400)
committerCarl Worth <cworth@cworth.org>
Fri, 23 Apr 2010 18:59:47 +0000 (11:59 -0700)
This reintroduces the patch committed in 9193455fa1, which was
reverted during the upgrade to the JSON emacs UI.

emacs/notmuch-show.el

index 916b39e390e59af47cee1a838cadbed1463401ee..12e5d28286bedda099f52d95b9097460ccda09db 100644 (file)
@@ -470,8 +470,8 @@ function is used. "
     (save-excursion
       (let* ((basic-args (list thread-id))
             (args (if query-context
-                      (append basic-args (list "and (" query-context ")"))
-                    basic-args)))
+                      (append (list "\"") basic-args (list "and (" query-context ")\""))
+                    (append (list "\"") basic-args (list "\"")))))
        (notmuch-show-insert-forest (notmuch-query-get-threads args))
        ;; If the query context reduced the results to nothing, run
        ;; the basic query.