[RFC] emacs/show: drop header lines for excluded messages

David Bremner david at tethera.net
Sat Sep 9 04:15:14 PDT 2017


These message headers can be brought back by the usual trick of adding
e.g. "tag:deleted" to the search.
---

This doesn't seem to break any tests (which suggests a gap in the test
suite). I _think_ this is a small improvement, particularly for
drafts, but I haven't used it much yet.

 emacs/notmuch-show.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index cd901e47..f72a2fdc 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -1143,7 +1143,7 @@ is t, hide the part initially and show the button."
   (let ((msg (car tree))
 	(replies (cadr tree)))
     ;; We test whether there is a message or just some replies.
-    (when msg
+    (when (and msg (not (plist-get msg :excluded)))
       (notmuch-show-insert-msg msg depth))
     (notmuch-show-insert-thread replies (1+ depth))))
 
-- 
2.14.1



More information about the notmuch mailing list