]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-show.el
emacs: set query-context to nil if its "" or "*"
[notmuch] / emacs / notmuch-show.el
index 1cbcc132030a67c347938b943d70beb2fd67a59e..cd901e47193058429a842bd8b4260e9da18e8e0c 100644 (file)
@@ -1260,7 +1260,9 @@ matched."
     ;; aren't wiped out.
     (setq notmuch-show-thread-id thread-id
          notmuch-show-parent-buffer parent-buffer
-         notmuch-show-query-context query-context
+         notmuch-show-query-context (if (or (string= query-context "")
+                                            (string= query-context "*"))
+                                        nil query-context)
 
          notmuch-show-process-crypto notmuch-crypto-process-mime
          ;; If `elide-toggle', invert the default value.