Re: [O] Promote/demote an Active Region

2016-04-10 Thread Ron Mitchell
Nicolas,

Upgraded to org 8.3.4, made no difference.

But I have just now realised what the problem is!   I have been using
org-demote-subtree, not org-demote , Meta-Shift-Right, not Meta-Right.  
And org-demote does indeed work on an active region for me.   I suppose
you could argue that org-demote-subtree ought to do the same, but (a)
there's no need and (b) there might be a question about what is meant by
'subtrees' in a region.

Doh!  Thanks for your help.

Regards,

Ron

- Original message -
From: Nicolas Goaziou 
To: Ron Mitchell 
Cc: emacs-orgmode@gnu.org
Subject: Re: Promote/demote an Active Region
Date: Sun, 10 Apr 2016 09:03:02 +0200

Hello,

Ron Mitchell  writes:

> In "2.5 Structure Editing" the org info manual says
>
> "When there is an active region (Transient Mark mode), promotion and
> demotion work on all headlines in the region."
>
> That doesn't work for me. Only the line at point is pro- or de- moted.

I cannot reproduce it. E.g., in the following document, where region
boundaries are marked with |,

  |* H1
  ** H11|
  * H2

using M-Right gives

  ** H1
  *** H11
  * H2

Regards,

-- 
Nicolas Goaziou



Re: [O] Promote/demote an Active Region

2016-04-10 Thread Nicolas Goaziou
Hello,

Ron Mitchell  writes:

> When I do Meta-Shift-Right on your example (with, as in yours, the
> region set to the first two lines):
>
> * H1
> ** H11
> * H2
>
> I get 
>
> * H1
> *** H11
> * H2
>
> It's not a problem with key binding, because I get the same result if I
> execute the command 'org-demote-subtree'.

You could update Org and try again. The issue may have been fixed already.

Regards,

-- 
Nicolas Goaziou



Re: [O] Promote/demote an Active Region

2016-04-10 Thread Ron Mitchell
Hi Nicolas,

Thanks, that's interesting.

When I do Meta-Shift-Right on your example (with, as in yours, the
region set to the first two lines):

* H1
** H11
* H2

I get 

* H1
*** H11
* H2

It's not a problem with key binding, because I get the same result if I
execute the command 'org-demote-subtree'.

Regards

Ron

- Original message -
From: Nicolas Goaziou 
To: Ron Mitchell 
Cc: emacs-orgmode@gnu.org
Subject: Re: Promote/demote an Active Region
Date: Sun, 10 Apr 2016 09:03:02 +0200

Hello,

Ron Mitchell  writes:

> In "2.5 Structure Editing" the org info manual says
>
> "When there is an active region (Transient Mark mode), promotion and
> demotion work on all headlines in the region."
>
> That doesn't work for me. Only the line at point is pro- or de- moted.

I cannot reproduce it. E.g., in the following document, where region
boundaries are marked with |,

  |* H1
  ** H11|
  * H2

using M-Right gives

  ** H1
  *** H11
  * H2

Regards,

-- 
Nicolas Goaziou



Re: [O] Promote/demote an Active Region

2016-04-10 Thread Nicolas Goaziou
Hello,

Ron Mitchell  writes:

> In "2.5 Structure Editing" the org info manual says
>
> "When there is an active region (Transient Mark mode), promotion and
> demotion work on all headlines in the region."
>
> That doesn't work for me. Only the line at point is pro- or de- moted.

I cannot reproduce it. E.g., in the following document, where region
boundaries are marked with |,

  |* H1
  ** H11|
  * H2

using M-Right gives

  ** H1
  *** H11
  * H2

Regards,

-- 
Nicolas Goaziou



Re: [O] Promote/demote an Active Region

2016-04-09 Thread Uwe Koloska
Am 09.04.2016 um 17:52 schrieb Ron Mitchell:
> In "2.5 Structure Editing" the org info manual says
> 
> "When there is an active region (Transient Mark mode), promotion and
> demotion work on all headlines in the region."
> 
> That doesn't work for me. Only the line at point is pro- or de- moted. 
> 
> Is this a bug, or am I not understanding the manual in some way?  If it is a
> bug, how should I report it?

I don't know wether this is a bug or not.  But I know a way that works:

http://emacs.stackexchange.com/questions/5719/how-do-i-demote-promote-selected-subtrees/18216#18216

If you kill the region that you want to promote/demote and then use
org-paste-subtree with the needed number of stars before the paste
target, you get what you want.

Uwe




[O] Promote/demote an Active Region

2016-04-09 Thread Ron Mitchell
Hi there.  

In "2.5 Structure Editing" the org info manual says

"When there is an active region (Transient Mark mode), promotion and
demotion work on all headlines in the region."

That doesn't work for me. Only the line at point is pro- or de- moted. 

Is this a bug, or am I not understanding the manual in some way?  If it is a
bug, how should I report it?

I'm on org 2.10.0, in emacs 24.5, on Linux Mint Rebecca.

Thanks & regards,

Ron