summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2014-04-20 09:31:28 +0200
committerBastien Guerry <bzg@altern.org>2014-04-20 09:31:28 +0200
commitd9312231e96979b4f0855d794959c5442afd975a (patch)
tree59c1b11e2c2bc6a0a997958bea4018c424eb89ec
parent5d0e668cc6632ee5ec1dca083b35fb4733239258 (diff)
downloadorg-mode-d9312231e96979b4f0855d794959c5442afd975a.tar.gz
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.
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index f82526a..24cd4b5 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -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