X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-show.el;h=cd901e47193058429a842bd8b4260e9da18e8e0c;hb=3445385f95c4e28312466f07d25c51c2b7273d3e;hp=aafdd3d77282af3ade478c7c6d65f1951e483b0d;hpb=0aba694c11846f76cfa64470d10a50cec8e43bd5;p=notmuch diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index aafdd3d7..cd901e47 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -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. @@ -1677,9 +1679,10 @@ current thread." ;; dme: Would it make sense to use a macro for many of these? +;; XXX TODO figure out what to do about multiple filenames (defun notmuch-show-get-filename () "Return the filename of the current message." - (notmuch-show-get-prop :filename)) + (car (notmuch-show-get-prop :filename))) (defun notmuch-show-get-header (header &optional props) "Return the named header of the current message, if any."