aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--emacs/notmuch-show.el4
-rw-r--r--emacs/notmuch-wash.el1
2 files changed, 4 insertions, 1 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 5436b341..a49bbd3d 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -753,7 +753,9 @@ current buffer, if possible."
;; message.
(put-text-property message-start message-end :notmuch-message-extent (cons message-start message-end))
- (overlay-put (make-overlay headers-start headers-end) 'invisible headers-invis-spec)
+ (let ((headers-overlay (make-overlay headers-start headers-end)))
+ (overlay-put headers-overlay 'invisible headers-invis-spec)
+ (overlay-put headers-overlay 'priority 10))
(overlay-put (make-overlay body-start body-end) 'invisible message-invis-spec)
;; Save the properties for this message. Currently this saves the
diff --git a/emacs/notmuch-wash.el b/emacs/notmuch-wash.el
index 8607fb00..92f07c50 100644
--- a/emacs/notmuch-wash.el
+++ b/emacs/notmuch-wash.el
@@ -156,6 +156,7 @@ insert before the button, probably for indentation."
(add-to-invisibility-spec invis-spec)
(overlay-put overlay 'invisible (list invis-spec message-invis-spec))
(overlay-put overlay 'isearch-open-invisible #'notmuch-wash-region-isearch-show)
+ (overlay-put overlay 'priority 10)
(overlay-put overlay 'type type)
(goto-char (1+ end))
(save-excursion