summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-03-03 13:41:20 +0100
committerBastien Guerry <bzg@altern.org>2013-03-03 13:41:20 +0100
commitf48605c8783eee8d62dec4df038c3520a9a01f29 (patch)
tree84fec26c0550db5c05d96bc2ace915c19f33119f
parentfac8191dafc087cde04678a67551c9dd8cc6abd8 (diff)
parentf6883b8e264855bc521581898a0ee5c223b48eb8 (diff)
downloadorg-mode-f48605c8783eee8d62dec4df038c3520a9a01f29.tar.gz
Merge branch 'maint'
-rw-r--r--lisp/org-mobile.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el
index 444cb94..0add9ef 100644
--- a/lisp/org-mobile.el
+++ b/lisp/org-mobile.el
@@ -1070,6 +1070,9 @@ be returned that indicates what went wrong."
((eq what 'addheading)
(if (org-on-heading-p) ; if false we are in top-level of file
(progn
+ ;; Workaround a `org-insert-heading-respect-content' bug
+ ;; which prevents correct insertion when point is invisible
+ (org-show-subtree)
(end-of-line 1)
(org-insert-heading-respect-content '(4) t)
(org-demote))