]> git.notmuchmail.org Git - notmuch/commitdiff
notmuch.el: Fix to hide citations in body of read messages.
authorCarl Worth <cworth@cworth.org>
Wed, 4 Nov 2009 16:38:49 +0000 (08:38 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 4 Nov 2009 16:50:44 +0000 (08:50 -0800)
Previously, unhinding a read message would still show all the citations
in that message without an explicit command to make them visible. Fix.

notmuch.el

index 5f394cdd39584b34474160fbf1e4e44a2f5ad570..a6cb82360949206cf2993a23af5f68a5c7e74991 100644 (file)
@@ -198,10 +198,10 @@ simply move to the beginning of the current message."
   (let ((beg (point)))
     (re-search-forward notmuch-show-body-end-regexp)
     (let ((end (match-beginning 0)))
+      (notmuch-show-markup-citations-region beg end)
       (if (not (member "unread" (notmuch-show-get-tags)))
          (overlay-put (make-overlay beg end)
-                      'invisible 'notmuch-show-body-read))
-      (notmuch-show-markup-citations-region beg end))))
+                      'invisible 'notmuch-show-body-read)))))
 
 (defun notmuch-show-markup-header ()
   (re-search-forward notmuch-show-header-begin-regexp)