X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-tree.el;h=220395e712bdf0bcdce56d38f78e91ece88f0970;hp=022525aec0f5d45c97dbb1079016fab58d1ab17d;hb=cb5253578d983471e5b55604581d390fcdda38f4;hpb=1d82110f8397e413d1e000b5a2aa99a2b0995e6d diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 022525ae..220395e7 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -897,7 +897,9 @@ the same as for the function notmuch-tree." (notmuch-tree-mode) (add-hook 'post-command-hook #'notmuch-tree-command-hook t t) (setq notmuch-tree-basic-query basic-query) - (setq notmuch-tree-query-context query-context) + (setq notmuch-tree-query-context (if (or (string= query-context "") + (string= query-context "*")) + nil query-context)) (setq notmuch-tree-target-msg target) (setq notmuch-tree-open-target open-target) ;; Set the default value for `notmuch-show-process-crypto' in this