New option `org-allow-promoting-top-level-subtree'.
commit10aba6b1261a47a2aa4862b7222f87814af7ba31
authorBastien Guerry <bzg@altern.org>
Tue, 8 May 2012 13:19:36 +0000 (8 15:19 +0200)
committerBastien Guerry <bzg@altern.org>
Tue, 8 May 2012 13:19:52 +0000 (8 15:19 +0200)
treee64da2e246ea5005a62d7fa6b8347d143c3e3657
parent6b482c4ed58810d2fe855bf9ca9da342d0782b44
New option `org-allow-promoting-top-level-subtree'.

* org.el (org-allow-promoting-top-level-subtree): New option
to allow promoting a top-level subtree.
(org-called-with-limited-levels): New variable, dynamically
bound within the `org-with-limited-levels' macro.
(org-promote): Use the new option to allow promoting a
top-level subtree.

* org-macs.el (org-with-limited-levels): Let-bind
`org-called-interactively-p' to t.

Promoting a top-level subtree can be useful but should not be allowed by
default, as this restructuring is only reversible with M-x undo RET.
lisp/org-macs.el
lisp/org.el