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 <gtdplatf...@gmail.com> 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 <ndo...@gmail.com> wrote: >> >>> York Zhao <gtdplatf...@gmail.com> 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