Nikolai Weibull <n...@disu.se> writes: > That’s what I used first, but that doesn’t work if the subtree has > children that has children.
Indeed. I realized it was wrong a short time after sending it. What about: (end-of-line) (org-insert-heading '(4) t) (org-do-demote) ? Regards,