aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-11-04 15:05:44 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-11-04 15:05:44 -0800
commita1f631ab6b533da5bbada0ed97a33da23f4a29c6 (patch)
tree8bcced8110b092bed8888b5bcf28a7348185dca3
parent2aa6c2d9a1bef0ce6f7fa3718bd1a2a3bc5f0d85 (diff)
notmuch.el: Don't hide message bodies when all messages are read.
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.
-rw-r--r--notmuch.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/notmuch.el b/notmuch.el
index de995eca..de44d247 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -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