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 <m...@nicolasgoaziou.fr>
To: Ron Mitchell <r...@ronmitchell.co.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: Promote/demote an Active Region
Date: Sun, 10 Apr 2016 09:03:02 +0200

Hello,

Ron Mitchell <r...@ronmitchell.co.uk> 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 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 <m...@nicolasgoaziou.fr>
To: Ron Mitchell <r...@ronmitchell.co.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: Promote/demote an Active Region
Date: Sun, 10 Apr 2016 09:03:02 +0200

Hello,

Ron Mitchell <r...@ronmitchell.co.uk> 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



[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