If I run certain functions like isearch-forward
(with C-s) in an org-mode buffer, all content become temporarily visible. When I end the search, headings automagically collapse the way they were before I searched. Nice.
But if I run something like query-replace
(with M-%), trees stay collapsed. The point essentially hidden inside them. I am asked to confirm a change that I can't see. That's not good at all!
Surely functions like query-replace
should behave more like isearch-forward
does. I swear I found a simple solution to this at some point. (A variable with a smart
setting, I thought?) But I seem to have lost track of it. Please help me.
M-x report-emacs-bug
, to suggest this as a feature enhancement.org-show-context
? This is driving me nuts because I'm 99% sure I found a fix for this online somewhere and somehow lost track of it.(setq org-catch-invisible-edits (quote smart))
. Maybe this just stopped working because a recent upgrade in org-mode. (I'm running the version on ELPA.)show
instead ofsmart
.