|
From: | Carsten Dominik |
Subject: | Re: [O] [PATCH 0/5] loop over headlines in active region |
Date: | Thu, 25 Aug 2011 08:13:21 +0200 |
On 25.8.2011, at 06:25, David Maus wrote: Hi Bastien, Great -- can you submit a patch against current git head? Following 5 patches implement looping over headlines in active region for org-schedule and org-deadline. Invisible headlines are skipped Hi David, I am wondering, why did you choose to skip invisible headlines? I would worry that this introduces inconsistent behavior and also makes it hard to use this feature in a programmatic way. Regards - Carsten and bulk-agenda commands work by binding the customization variable to nil before executing a command. I've been running with this modification for 2 weeks now, using the feature occassionally without a visibile problem. As for the macro: What stop me to implement a macro for the generic operation is that for now the macro would depend on the global customization variable. That's not a problem per se but according to my readings about macros (mostly in context of Common Lisp, but that shouldn't matter) it should be considered bad style. I did some experiments with defining an `org-map-entries' MATCH of 'current that causes FUNC to be applied to the current heading only, but I'm not sure if this would be a right thing (tm) to do. Best, -- David David Maus (5): Extend scope 'region to include body of last headline in active region Immediately return if scope is region but no region is active New customization variable: Loop over headlines in active region Skip invisible headlines when mapping over headlines in active region Avoid conflict between bulk command and loop-over-headlines |
[Prev in Thread] | Current Thread | [Next in Thread] |