This reintroduces the patch committed in
9193455fa1, which was
reverted during the upgrade to the JSON emacs UI.
(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.