Re: [O] How to move up/down a headline but not the subtree?

2018-07-10 Thread Bernt Hansen
alain.coch...@unistra.fr writes: > Neil Jerram writes on Thu 5 Jul 2018 11:46: > > > > What I would like to do is to be able to move a headline with > > > everything up to (but not including) its first subheading. > > > > > > Does anyone know how to do that? > > > > > > I am also

Re: [O] How to move up/down a headline but not the subtree?

2018-07-07 Thread Nicolas Goaziou
Hello, alain.coch...@unistra.fr writes: > I do not understand this. When one is demoting/promoting > headlines[fn:2] (and even whole subtrees), it seems to me that one is > implicitly admitting that the structure is wrong. I only see a > quantitative difference (i.e., not a qualitative one)

Re: [O] How to move up/down a headline but not the subtree?

2018-07-06 Thread Alain . Cochard
Neil Jerram writes on Thu 5 Jul 2018 13:53: > FWIW, I just experimented. This seems to work: > > M-right M-right M-right M-right M-right C-c C-x C-w > > move to new destination > > C-c C-x C-y > > and is pretty fast. That's an interesting idea. Maybe I can build on that for

Re: [O] How to move up/down a headline but not the subtree?

2018-07-06 Thread Alain . Cochard
Hi, and thanks for your message. Nicolas Goaziou writes on Thu 5 Jul 2018 12:50: > > I am also interested in knowing if there are specific (deep?) > > reasons why this seemingly basic operation, which I see as the > > analogous of org-do-promote/demote and perform very often with > >

Re: [O] How to move up/down a headline but not the subtree?

2018-07-05 Thread Eric S Fraga
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

Re: [O] How to move up/down a headline but not the subtree?

2018-07-05 Thread Neil Jerram
alain.coch...@unistra.fr writes: > Neil Jerram writes on Thu 5 Jul 2018 11:46: > > > > What I would like to do is to be able to move a headline with > > > everything up to (but not including) its first subheading. > > > > > > Does anyone know how to do that? > > > > > > I am also

Re: [O] How to move up/down a headline but not the subtree?

2018-07-05 Thread Alain . Cochard
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... > What was not clear in your OP was what happens to the first >

Re: [O] How to move up/down a headline but not the subtree?

2018-07-05 Thread Alain . Cochard
Neil Jerram writes on Thu 5 Jul 2018 11:46: > > What I would like to do is to be able to move a headline with > > everything up to (but not including) its first subheading. > > > > Does anyone know how to do that? > > > > I am also interested in knowing if there are specific (deep?) > >

Re: [O] How to move up/down a headline but not the subtree?

2018-07-05 Thread Nicolas Goaziou
Hello, alain.coch...@unistra.fr writes: > I am also interested in knowing if there are specific (deep?) reasons > why this seemingly basic operation, which I see as the analogous of > org-do-promote/demote and perform very often with standard (but > tedious) emacs editing commands, is not

Re: [O] How to move up/down a headline but not the subtree?

2018-07-05 Thread Neil Jerram
alain.coch...@unistra.fr writes: > Hello. > > I am aware of org-move-subtree-up/down, which moves the entire > subtree. > > I am also aware of org-shiftmetaup/down which moves the line[fn:1] (also > works for a headline). > > What I would like to do is to be able to move a headline with >

Re: [O] How to move up/down a headline but not the subtree?

2018-07-05 Thread Eric S Fraga
On Thursday, 5 Jul 2018 at 12:38, alain.coch...@unistra.fr wrote: > Eric S Fraga writes on Thu 5 Jul 2018 10:44: > > > Or, remembering that this *is* in fact a text editor, select > > heading and content, kill it, go where you want it placed, and yank > > it...? > > This is what I do so

Re: [O] How to move up/down a headline but not the subtree?

2018-07-05 Thread Alain . Cochard
Eric S Fraga writes on Thu 5 Jul 2018 10:44: > Or, remembering that this *is* in fact a text editor, select > heading and content, kill it, go where you want it placed, and yank > it...? This is what I do so far... and qualify as tedious :-) Thanks anyway. -- EOST (École et Observatoire

Re: [O] How to move up/down a headline but not the subtree?

2018-07-05 Thread Eric S Fraga
On Thursday, 5 Jul 2018 at 11:40, alain.coch...@unistra.fr wrote: > Hello. > > I am aware of org-move-subtree-up/down, which moves the entire > subtree. > > I am also aware of org-shiftmetaup/down which moves the line[fn:1] (also > works for a headline). > > What I would like to do is to be