From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: org-map-entries on heading? Date: Sat, 17 Oct 2015 20:11:04 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnbZ9-000059-3M for emacs-orgmode@gnu.org; Sat, 17 Oct 2015 20:11:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZnbZ5-0006U0-TN for emacs-orgmode@gnu.org; Sat, 17 Oct 2015 20:11:11 -0400 Received: from mail-qg0-x236.google.com ([2607:f8b0:400d:c04::236]:32861) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnbZ5-0006Tv-OC for emacs-orgmode@gnu.org; Sat, 17 Oct 2015 20:11:07 -0400 Received: by qgeo38 with SMTP id o38so86074784qge.0 for ; Sat, 17 Oct 2015 17:11:07 -0700 (PDT) Received: from Johns-MacBook-Air.local (c-71-206-238-169.hsd1.pa.comcast.net. [71.206.238.169]) by smtp.gmail.com with ESMTPSA id f7sm11160441qka.41.2015.10.17.17.11.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Oct 2015 17:11:05 -0700 (PDT) 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: orgmode I have been exploring org-contacts a bit, and variations of ways to collect entries using org-map-entries. This gets me a list of contacts that have cmu in the email property and that have a LASTNAME property that starts with K. (org-map-entries (lambda () (org-entry-get (point) "EMAIL")) "EMAIL={cmu}+LASTNAME={^K}" org-contacts-files) Not all my contacts have a LASTNAME property though, sometimes the name is in the headline. Is there a way to test the ITEM special property in org-map-entries? I gathered from http://orgmode.org/manual/Special-properties.html that ITEM should contain the headline with stars, but it doesn't seem to be accessible in org-map-entries. Thanks. -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu