diff options
author | David Bremner <bremner@unb.ca> | 2009-12-10 11:14:35 -0400 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-12-10 10:29:36 -0800 |
commit | 0a53a1d1d7ca3732e9711a718dabca56425df2d4 (patch) | |
tree | 9e8cac39e8722e6f8a57c208ce5b448691c09889 /notmuch.el | |
parent | 5e8ce15bfb4e836ca3ecd961903230b42830c06e (diff) |
notmuch.el: patch notmuch-show to call notmuch show without query-context (i.e. without tag:inbox) if the first query returns nothing.
This fixes the annoying bug of archiving a thread, and then going back
to open it and getting an error. It needs the notmuch-show API
changing patch of 1259979997-31544-3-git-send-email-david@tethera.net.
Diffstat (limited to 'notmuch.el')
-rw-r--r-- | notmuch.el | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |