diff options
| author | Matt Armstrong <matt@rfc20.org> | 2022-10-12 20:20:38 -0700 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-11-05 13:13:43 -0400 |
| commit | b6565c1c54e35563843e7ddece601680170bb84a (patch) | |
| tree | d7ac9bab343c45b61968143dfa32ab76681e4113 /emacs/notmuch.el | |
| parent | 32bef335658763b5e9d887db3ac22bb3c1b76d9e (diff) | |
emacs: fix dangling overlays in notmuch-search
notmuch-search-insert-authors now sets the evaporate property on the
ellipsis overlays. Emacs will delete them when the buffer contents
are zeroed out, which happens with `notmuch-refresh-buffer`. This
prevents them from being collapsed to zero-width overlays in position
1. See Emacs bug#58479. An upcoming change in Emacs will make these
dangling overlays visible to the user.
Diffstat (limited to 'emacs/notmuch.el')
| -rw-r--r-- | emacs/notmuch.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 26181758..6eef4af1 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -841,6 +841,7 @@ non-authors is found, assume that all of the authors match." overlay) (insert invisible-string) (setq overlay (make-overlay start (point))) + (overlay-put overlay 'evaporate t) (overlay-put overlay 'invisible 'ellipsis) (overlay-put overlay 'isearch-open-invisible #'delete-overlay))) (insert padding)))) |
