From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: [PATCH 0/5] loop over headlines in active region Date: Thu, 25 Aug 2011 06:25:29 +0200 Message-ID: <1314246334-5053-1-git-send-email-dmaus@ictsoc.de> References: <87obzpl3ec.fsf@gnu.org> Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwRVo-0000oY-Li for emacs-orgmode@gnu.org; Thu, 25 Aug 2011 00:25:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwRVn-0002TO-OS for emacs-orgmode@gnu.org; Thu, 25 Aug 2011 00:25:52 -0400 Received: from app1b.xlhost.de ([213.202.242.162]:59383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwRVn-0002Qd-K1 for emacs-orgmode@gnu.org; Thu, 25 Aug 2011 00:25:51 -0400 In-Reply-To: <87obzpl3ec.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: emacs-orgmode@gnu.org Cc: David Maus 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 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