X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch.el;h=fa83d40667b9df818cfd6788591d10a031e61766;hb=0a53a1d1d7ca3732e9711a718dabca56425df2d4;hp=d180fa4e51ba04f7ed7d9ba4df2a81e0a021f125;hpb=5e8ce15bfb4e836ca3ecd961903230b42830c06e;p=notmuch diff --git a/notmuch.el b/notmuch.el index d180fa4e..fa83d406 100644 --- a/notmuch.el +++ b/notmuch.el @@ -950,7 +950,9 @@ matching this search term are shown if non-nil. " (save-excursion (let* ((basic-args (list notmuch-command nil t nil "show" "--entire-thread" thread-id)) (args (if query-context (append basic-args (list "and (" query-context ")")) basic-args))) - (apply 'call-process args)) + (apply 'call-process args) + (when (and (eq (buffer-size) 0) query-context) + (apply 'call-process basic-args))) (notmuch-show-markup-messages) ) (run-hooks 'notmuch-show-hook)