emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Promote/demote an Active Region
@ 2016-04-09 15:52 Ron Mitchell
  2016-04-09 19:37 ` Uwe Koloska
  2016-04-10  7:03 ` Nicolas Goaziou
  0 siblings, 2 replies; 6+ messages in thread
From: Ron Mitchell @ 2016-04-09 15:52 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Promote/demote an Active Region
  2016-04-09 15:52 Promote/demote an Active Region Ron Mitchell
@ 2016-04-09 19:37 ` Uwe Koloska
  2016-04-10  7:03 ` Nicolas Goaziou
  1 sibling, 0 replies; 6+ messages in thread
From: Uwe Koloska @ 2016-04-09 19:37 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Promote/demote an Active Region
  2016-04-09 15:52 Promote/demote an Active Region Ron Mitchell
  2016-04-09 19:37 ` Uwe Koloska
@ 2016-04-10  7:03 ` Nicolas Goaziou
  2016-04-10 16:07   ` Ron Mitchell
  2016-04-10 22:39   ` Ron Mitchell
  1 sibling, 2 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2016-04-10  7:03 UTC (permalink / raw)
  To: Ron Mitchell; +Cc: emacs-orgmode

Hello,

Ron Mitchell <ron@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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Promote/demote an Active Region
  2016-04-10  7:03 ` Nicolas Goaziou
@ 2016-04-10 16:07   ` Ron Mitchell
  2016-04-10 20:39     ` Nicolas Goaziou
  2016-04-10 22:39   ` Ron Mitchell
  1 sibling, 1 reply; 6+ messages in thread
From: Ron Mitchell @ 2016-04-10 16:07 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

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 <mail@nicolasgoaziou.fr>
To: Ron Mitchell <ron@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 <ron@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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Promote/demote an Active Region
  2016-04-10 16:07   ` Ron Mitchell
@ 2016-04-10 20:39     ` Nicolas Goaziou
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2016-04-10 20:39 UTC (permalink / raw)
  To: Ron Mitchell; +Cc: emacs-orgmode

Hello,

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Promote/demote an Active Region
  2016-04-10  7:03 ` Nicolas Goaziou
  2016-04-10 16:07   ` Ron Mitchell
@ 2016-04-10 22:39   ` Ron Mitchell
  1 sibling, 0 replies; 6+ messages in thread
From: Ron Mitchell @ 2016-04-10 22:39 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

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 <mail@nicolasgoaziou.fr>
To: Ron Mitchell <ron@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 <ron@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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-04-10 22:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-09 15:52 Promote/demote an Active Region Ron Mitchell
2016-04-09 19:37 ` Uwe Koloska
2016-04-10  7:03 ` Nicolas Goaziou
2016-04-10 16:07   ` Ron Mitchell
2016-04-10 20:39     ` Nicolas Goaziou
2016-04-10 22:39   ` Ron Mitchell

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).