Nikolay Kudryavtsev <nikolay.kudryavt...@gmail.com> writes: > Is there any way to modify node visibility and then revert those > changes? In particular I'm interested in doing and then reverting > (org-content).
If you pass a non-nil value for the INVISIBLE-OK argument of outline-up-heading, I think that your function should work without the org-content call. Also, it might be worth replacing outline-up-heading with org-up-heading-safe, which should be faster. -- Kyle