]> git.notmuchmail.org Git - notmuch/commitdiff
notmuch.el: Don't hide message bodies when all messages are read.
authorCarl Worth <cworth@cworth.org>
Wed, 4 Nov 2009 23:05:44 +0000 (15:05 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 4 Nov 2009 23:05:44 +0000 (15:05 -0800)
Presumably the user is trying to view this thread for a reason, so
it's better to actually show *something* rather than just the summary
lines.

notmuch.el

index de995ecaa014294ddf0f1cd0caeac6cfc6708c2d..de44d24737fbb54ec75994fadb22a5227fe4a481 100644 (file)
@@ -470,9 +470,12 @@ thread from that buffer can be show when done with this one)."
          (progn
            (notmuch-show-next-unread-message)
            ; But if there are no unread messages, go back to the
-           ; beginning of the buffer.
+           ; beginning of the buffer, and open up the bodies of all
+           ; read message.
            (if (not (notmuch-show-message-unread-p))
-               (goto-char (point-min)))))
+               (progn
+                 (goto-char (point-min))
+                 (notmuch-show-toggle-body-read-visible)))))
       )))
 
 (defvar notmuch-search-mode-map