(current as of org 8.2.10)
I have a thing (shameless plug) that outputs a simple snippet of org-headings in a single file that look like this:
* little boys
- puppy dog tails
* little girls
- everything nice
These are meant to go into another file through
org-insert functions, specifically, a subheading of that other file.
In order to do that I have to demote all of the headings so that they slide nicely into place. How can I do that?
C-x r tto prepend asterisks; this adds asterisks to every line
C-x h M-S-<right>to try demoting the whole selection; this only demoted the first line
Further issue: org-metaright does not demote subtrees
Commenters were correct that
C-x h M-<right> (
org-metaright) promotes or demotes visible selections. However, this ignores their subtrees, resulting in reordering of their substructure. The same behavior occurs with
org-do-demote called on a selection.