aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch-wash.el
diff options
context:
space:
mode:
authorGravatar Dmitry Kurochkin <dmitry.kurochkin@gmail.com>2011-05-26 02:10:15 +0400
committerGravatar Carl Worth <cworth@cworth.org>2011-06-15 07:07:32 -0700
commit4a9d0ac1472f7bd8b785256366720e3e6aa2855f (patch)
tree1dcb7cae6688c323065f0551cec4da32160d27ff /emacs/notmuch-wash.el
parent95ef8da29439f2e79115c36ab4d2a80aef1a1462 (diff)
Set higher priority for headers and hidden citation overlays.
Before the patch, message, headers and hidden citation overlays had zero priority. All these overlay have `invisible' property. Emacs documentation says that we should not make assumptions about which overlay will prevail when they have the same priority [1]. It happens to work as we need, but we should not rely on undocumented behavior. [1] http://www.gnu.org/s/emacs/manual/html_node/elisp/Overlay-Properties.html
Diffstat (limited to 'emacs/notmuch-wash.el')
-rw-r--r--emacs/notmuch-wash.el1
1 files changed, 1 insertions, 0 deletions
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