evil-visual-mark-mode
evil-visual-mark-mode copied to clipboard
Only show marks added in current session
Runtime Environment
- MX Linux 18
- GNU Emacs 27.0.50
- evil-visual-mark 20190116.1557
- use-package declaration
- Org mode version 9.2.3
- Evil version 1.2.14
- ~/.emacs.d
Issue
When I add a mark such as Z
, close the file and then reopen it, evil-visual-mark-mode
does not show the Z marker
, even though Z
works correctly. It only shows newly added markers.
Maybe it's due to the invalidation of overlay
. evil-visual-mark-mode
caches overlays and when a buffer is killed, all its corresponding overlays become invalid like this #<overlay in no buffer>
.
Is there something I can do about it?
Avoid to kill buffers may bypass this issue. I will see if I could fix it, though I'm not good at emacs lisp.
Okay then, thanks!