X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-wash.el;h=5ca567f59be6ad1cc43a4864253e1e9f44979012;hb=6408270512dd654243b81ed57b81dad3f721938c;hp=54a380a1ba426f103115727da48590ea26ab527e;hpb=8cbb5114a20c1217f23977fd5edca99a0b7a2955;p=notmuch diff --git a/emacs/notmuch-wash.el b/emacs/notmuch-wash.el index 54a380a1..5ca567f5 100644 --- a/emacs/notmuch-wash.el +++ b/emacs/notmuch-wash.el @@ -77,6 +77,9 @@ collapse the remaining lines into a button.") 'help-echo "mouse-1, RET: Show signature" :supertype 'notmuch-wash-button-invisibility-toggle-type) +(defun notmuch-wash-region-isearch-show (overlay) + (remove-from-invisibility-spec (overlay-get overlay 'invisible))) + (defun notmuch-wash-region-to-button (beg end type prefix button-text) "Auxilary function to do the actual making of overlays and buttons @@ -96,6 +99,7 @@ is what to put on the button." type "-toggle-type")))) (add-to-invisibility-spec invis-spec) (overlay-put overlay 'invisible invis-spec) + (overlay-put overlay 'isearch-open-invisible #'notmuch-wash-region-isearch-show) (goto-char (1+ end)) (save-excursion (goto-char (1- beg))