On Thursday, 5 Jul 2018 at 14:07, alain.coch...@unistra.fr wrote: > Eric S Fraga writes on Thu 5 Jul 2018 11:46: > > > Well, it's a deterministic set of steps so you could record a macro > > to do the selection and kill? Then all you have to do is move and > > yank? > > Would still be long...
You save the keyboard macro as a key binding and it would be no longer than what you were asking for? Maybe one key stroke longer. > > What was not clear in your OP was what happens to the first > > subheading? Should it be promoted or does it suddenly become a > > child of another main heading? > > In my mind, everything except the headline and its associated text > would stay unchanged, though your questions make me realize that a > reasonable option would be that the whole subtree be promoted (but > probably not just the 1st subheading). But, as others have noted, this is a change of (semantic) structure and not well defined which is arguably why there's no automatic way of doing what you want. -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.13-783-g97fac4