Q: how can I prevent undos of invisible text?
outline-minor-mode in virtually every
buffer, and leave text folded (invisible) unless I'm explicitly
working on it. Sometimes I hide text and then accidentally hit
undo, which is super confusing.
How can I prevent
undo from undoing edits that are in an
invisible part of the buffer?