From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Call org-map-entries just on children? Date: Mon, 07 Feb 2011 09:51:36 -0800 Message-ID: <87ipwvd97b.fsf@berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=39600 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmYOp-0008En-W1 for emacs-orgmode@gnu.org; Mon, 07 Feb 2011 16:13:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmVBT-0002Sl-0O for emacs-orgmode@gnu.org; Mon, 07 Feb 2011 12:47:31 -0500 Received: from lo.gmane.org ([80.91.229.12]:49082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmVBS-0002ST-Pf for emacs-orgmode@gnu.org; Mon, 07 Feb 2011 12:47:30 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PmVBN-0008KC-Sc for emacs-orgmode@gnu.org; Mon, 07 Feb 2011 18:47:25 +0100 Received: from c-67-164-33-170.hsd1.ca.comcast.net ([67.164.33.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Feb 2011 18:47:25 +0100 Received: from richard.lawrence by c-67-164-33-170.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Feb 2011 18:47:25 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi all, I'm sure I'm just being thick here, but any help would be appreciated... I want to call org-map-entries in a way that calls a function at each *child* of the current tree, but not at the current tree itself. That is, for some function f, if my Org file looks like this: * Paper 1 ** Student 1 ** Student 2 ... I want to call f at "Student 1", "Student 2", etc. but not at "Paper 1". But if point is positioned at "Paper 1", then (org-map-entries 'f nil 'tree) first calls f at the "Paper 1" entry, not the "Student 1" entry. How can I apply f just to the *children* of "Paper 1"? (The reason I need to do this is that f needs to enforce that each of the children has a value for a certain property, but the parent entry should not have this property.) Thanks! Richard