From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: New feature: loop over siblings for some commands Date: Wed, 10 Aug 2011 10:34:14 +0200 Message-ID: <87hb5pacmx.wl%dmaus@ictsoc.de> References: <87aacchtv8.fsf@gnu.org> <87zkkayvld.wl%dmaus@ictsoc.de> <87pql4g2fg.wl%dmaus@ictsoc.de> <87pqkvu4ij.fsf@gnu.org> <87wrf3lfwk.wl%dmaus@ictsoc.de> <87wrf24wfj.fsf@gnu.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Wed_Aug_10_10:34:13_2011-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qr4FB-0005q4-5O for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 04:34:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qr4F7-0003Mc-Hw for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 04:34:29 -0400 Received: from app1b.xlhost.de ([213.202.242.162]:39478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qr4F6-0003LP-Sb for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 04:34:25 -0400 In-Reply-To: <87wrf24wfj.fsf@gnu.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: David Maus , emacs-orgmode@gnu.org --pgp-sign-Multipart_Wed_Aug_10_10:34:13_2011-1 Content-Type: text/plain; charset=US-ASCII 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.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Wed_Aug_10_10:34:13_2011-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAk5CQoUACgkQma24O1pEeOYE8wEA20lHHmI238q718L8FasLHJGS Jm752oZb2SRLIwdfvQMBAMDR3CrY2HuuUWPsN7ddiN53GSxTSqoIu02X1w6HUDjk =OnIk -----END PGP SIGNATURE----- --pgp-sign-Multipart_Wed_Aug_10_10:34:13_2011-1--