0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-23 13:19:00 +00:00

org.el (org-check-before-invisible-edit): Show the subtree

* org.el (org-check-before-invisible-edit): Don't just cycle,
show the subtree, as cycling may leave the current heading
folded.

Thanks to Paul Stansell for reporting this.
This commit is contained in:
Bastien Guerry 2014-04-20 09:31:28 +02:00
parent 5d0e668cc6
commit d9312231e9

View file

@ -19465,7 +19465,7 @@ The detailed reaction depends on the user option `org-catch-invisible-edits'."
(if invisible-before-point
(goto-char (previous-single-char-property-change
(point) 'invisible)))
(org-cycle))
(show-subtree))
(cond
((eq org-catch-invisible-edits 'show)
;; That's it, we do the edit after showing