Re: [O] outline-demote incorrectly demotes leaf nodes

2011-12-11 Thread Bastien
Hi Michael, Michael Brand writes: > Attached is the patch with this changelog: > > Completion of remapping for Outline functions > > * lisp/org.el Key bindings: remap the Outline functions from > `outline-mode-prefix-map' where possible. Thanks a lot for going through this systematically. I've

Re: [O] outline-demote incorrectly demotes leaf nodes

2011-11-09 Thread Michael Brand
Hi Carsten Attached is the patch with this changelog: Completion of remapping for Outline functions * lisp/org.el Key bindings: remap the Outline functions from `outline-mode-prefix-map' where possible. Michael On Sat, Oct 22, 2011 at 10:15, Michael Brand wrote: > On Fri, Oct 21, 2011 at 16:4

Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-22 Thread Michael Brand
Hi Carsten On Fri, Oct 21, 2011 at 16:40, Carsten Dominik wrote: > On Oct 19, 2011, at 5:39 PM, Michael Brand wrote: >> (define-key org-mode-map [remap outline-promote] 'org-promote-subtree) >> (define-key org-mode-map [remap outline-demote] 'org-demote-subtree) >> [...] > > Would you like to car

Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-21 Thread Bastien
Hi Carsten, Carsten Dominik writes: >> permanently built into Org mode (not in org-mode-hook) for these and >> maybe even a few more outline-* bindings to get the incompatible >> outline-* bindings out of the way from within Org mode. >> >> This remap does not affect the bindings in Outline mod

Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-21 Thread Bastien
Hi Michael, Michael Brand writes: > My suggestion is something like > > (define-key org-mode-map [remap outline-promote] 'org-promote-subtree) > (define-key org-mode-map [remap outline-demote] 'org-demote-subtree) I've taken this road and committed the change, thanks for the suggestion. > per

Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-21 Thread Carsten Dominik
On Oct 19, 2011, at 5:39 PM, Michael Brand wrote: > Hi Carsten > > On 18.10.2011, at 20:03, Sanjoy Mahajan wrote: >> I do worry about one point, namely that C-c C-> (outline-demote) should still >> work. And it does work in regular outline mode. For example, if I rename my >> test file to c.ot

Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-19 Thread Sanjoy Mahajan
Carsten, Thank you for the very clear explanation. I like this option that you suggested: (add-hook 'org-mode-hook (lambda () (define-key org-mode-map [(control ?<)] 'org-promote-subtree) (define-key org-mode-map [(control ?>)] 'org-demote-subtree))) It makes outline mode adapt to

Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-19 Thread Michael Brand
Hi Carsten On 18.10.2011, at 20:03, Sanjoy Mahajan wrote: > I do worry about one point, namely that C-c C-> (outline-demote) should still > work. And it does work in regular outline mode. For example, if I rename my > test file to c.otl and then use C-c C-> on the main heading, all the subtrees

Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-19 Thread Carsten Dominik
On 18.10.2011, at 20:03, Sanjoy Mahajan wrote: > Christian Moe christianmoe.com> writes: > >> The Org manual (2.5 Structure editing) says to use M-S-≤right> >> (org-demote-subtree) for what the submitter wants to do. > > (I am the original reporter of the issue on the Debian BTS.) That is us

Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-18 Thread Nick Dokos
Sanjoy Mahajan wrote: > Christian Moe christianmoe.com> writes: > > > The Org manual (2.5 Structure editing) says to use M-S-≤right> > > (org-demote-subtree) for what the submitter wants to do. > > (I am the original reporter of the issue on the Debian BTS.) That is useful > information for

Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-18 Thread Sanjoy Mahajan
Christian Moe christianmoe.com> writes: > The Org manual (2.5 Structure editing) says to use M-S-≤right> > (org-demote-subtree) for what the submitter wants to do. (I am the original reporter of the issue on the Debian BTS.) That is useful information for me, and I will use those keys. I do w

Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-18 Thread Bernt Hansen
Sébastien Delafond writes: > On 2011-10-18, Bernt Hansen wrote: >> I agree that's not a valid bug and should be closed. > > gotcha, will do. Christian & Bernt, thanks a lot for your input ! > > Cheers, > > --Seb There's M-right and M-S-right for demoting headings - the shift version also demote

Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-18 Thread Sébastien Delafond
On 2011-10-18, Bernt Hansen wrote: > I agree that's not a valid bug and should be closed. gotcha, will do. Christian & Bernt, thanks a lot for your input ! Cheers, --Seb

Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-18 Thread Bernt Hansen
I agree that's not a valid bug and should be closed. -Bernt Christian Moe writes: > Hi, > > The Org manual (2.5 Structure editing) says to use M-S- > (org-demote-subtree) for what the submitter wants to do. > > Yours, > Christian > > On 10/18/11 10:55 AM, Sébastien Delafond wrote: >> Hello, >>

Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-18 Thread Christian Moe
Hi, The Org manual (2.5 Structure editing) says to use M-S- (org-demote-subtree) for what the submitter wants to do. Yours, Christian On 10/18/11 10:55 AM, Sébastien Delafond wrote: Hello, from Debian bug #645360 (http://bugs.debian.org/645360): Here's my test file, call it "c.org":

[O] outline-demote incorrectly demotes leaf nodes

2011-10-18 Thread Sébastien Delafond
Hello, from Debian bug #645360 (http://bugs.debian.org/645360): Here's my test file, call it "c.org": * a ** aa *** aaa I put the cursor at the beginning of the file (at the * in the first line). Then I type C-c C-> (i.e. outline-demote). The result is ** a *** aa *** aaa