New allowed value 'start-level for `org-loop-over-headlines-in-active-region'.
commitdec7efc41490b9fb2c1bc849eb670643578af1ad
authorBastien Guerry <bzg@altern.org>
Fri, 30 Dec 2011 10:09:26 +0000 (30 11:09 +0100)
committerBastien Guerry <bzg@altern.org>
Fri, 30 Dec 2011 10:09:26 +0000 (30 11:09 +0100)
treea9792bbeb932acdaec8d49cbba65339075cb2b09
parent361261b0489ead4bb3dc6cc30a1bf3878b0fffb7
New allowed value 'start-level for `org-loop-over-headlines-in-active-region'.

* org.el (org-scan-tags): New parameter `start-level' to
scan only through headlines of that level.
(org-map-entries): New allowed value `region-start-level' for
the `scope' parameter, to allow scanning through headlines of
the same level than the first headline in the region.
(org-loop-over-headlines-in-active-region): New allowed value
'start-level.

This change gives more flexibility when looping over the active
region for commands like `org-schedule', `org-deadline', etc.
By setting `org-loop-over-headlines-in-active-region' to
̀€start-level', those command will act upon headlines that are
of the same level than the first one in the region.
lisp/org.el