embark
embark copied to clipboard
Embark select overlays hard to remove after reverting the buffer
When selecting some candidates via (embark-select), the suggested way to remove all selections is to (embark-act-all) and then toggle the selection for all of them. If you do not do this immediately and instead for example call (revert-buffer) the overlays remain, but the selection is not active anymore.
I did not find a simple way to remove those overlays and used the non-interactive function (remove-overlays) for that. Maybe one could add an interactive function to get rid of all selections and overlays to fix such issues?
I think reverting should remove the overlays automatically, but I am not sure about the best way to do this.