From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Document of org-map-entries Date: Thu, 13 Oct 2016 10:05:35 -0400 Message-ID: References: <87vawwx3db.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bugdi-0005U7-Iw for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 10:05:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bugde-0003gG-4g for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 10:05:41 -0400 Received: from mail-qk0-x22b.google.com ([2607:f8b0:400d:c09::22b]:35443) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bugdd-0003fv-Ro for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 10:05:38 -0400 Received: by mail-qk0-x22b.google.com with SMTP id z190so92106888qkc.2 for ; Thu, 13 Oct 2016 07:05:37 -0700 (PDT) In-reply-to: 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" To: York Zhao Cc: Nick Dokos , emacs-orgmode Try this instead: #+BEGIN_SRC emacs-lisp (org-map-entries (lambda () (org-heading-components)) "myproperty<>\"\"") #+END_SRC Empty properties get returned as "" not nil I think. York Zhao writes: > One more question: how do I map only the entries that has a specific > property > defined? The following code didn't work. > > (org-map-entries > (lambda () (...)) > "mytag+myproperty<>nil") > > Thanks, > > > On Thu, Oct 13, 2016 at 1:00 AM, York Zhao wrote: > >> Thank you very much Nick. >> >> (info "(org) Using the mapping API") was the first doc I read which has >> very little information on how to use the "match" parameter. (info "(org) >> Matching tags and properties") does have a lot more detail though. >> >> >> On Thu, Oct 13, 2016 at 12:46 AM, Nick Dokos wrote: >> >>> York Zhao writes: >>> >>> >>> > I wanted to know how to use the MATCH parameter in >>> > `org-map-entries'. I've searched extensively, but was unable to find >>> > much useful information. Can somebody please shed some lights on >>> > this? >>> > >>> >>> See >>> >>> (info "(org) Using the mapping API") >>> >>> and >>> >>> (info "(org) Matching tags and properties") >>> >>> -- >>> Nick >>> >>> >>> >> -- 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