mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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.
This commit is contained in:
parent
32bef33565
commit
b6565c1c54
1 changed files with 1 additions and 0 deletions
|
@ -841,6 +841,7 @@ non-authors is found, assume that all of the authors match."
|
||||||
overlay)
|
overlay)
|
||||||
(insert invisible-string)
|
(insert invisible-string)
|
||||||
(setq overlay (make-overlay start (point)))
|
(setq overlay (make-overlay start (point)))
|
||||||
|
(overlay-put overlay 'evaporate t)
|
||||||
(overlay-put overlay 'invisible 'ellipsis)
|
(overlay-put overlay 'invisible 'ellipsis)
|
||||||
(overlay-put overlay 'isearch-open-invisible #'delete-overlay)))
|
(overlay-put overlay 'isearch-open-invisible #'delete-overlay)))
|
||||||
(insert padding))))
|
(insert padding))))
|
||||||
|
|
Loading…
Reference in a new issue