Hi Bastien,

I've created a dedicated topic branch on Github

git://github.com/dmj/dmj-org-mode.git feat/org-loop-over-headlines

And implemented looping over headlines in active region for
org-schedule und org-deadline. Differences between this branch and
your proposed patch:

1/ Extend the region to end of entry, not end of subtree


,----
| * One
|
|   X
|
| ** Two
|
| ** Three
|
| * Four
|
|   X
|
| ** Five
`----

If X marks beginning and end of region, using end of subtree would include 
heading 'Five'.

2/ Immediatly leave org-map-entries if SCOPE is 'region but no region is active.

3/ No need to factor out BODY, simply bind
org-loop-over-headlines-in-active-region to nil and map entries in
region.

Whats next: Handle folded subtrees. Currently org-schedule w/ active
region schedules hidden subtrees, too. Using a tags/prop/todo query
seems suboptimal because you would have to know the characteristics of
the region beforehand. To me this seems to defeat the conveniance of
using the region: If I already know the characteristics of which
headlines to schedule, I would have created a agenda command and use
bulk-schedule.


Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmj...@jabber.org
Email..... dm...@ictsoc.de

Attachment: pgpAQd4IHuT0B.pgp
Description: PGP signature

Reply via email to