[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Document of org-map-entries
From: |
John Kitchin |
Subject: |
Re: [O] Document of org-map-entries |
Date: |
Thu, 13 Oct 2016 10:05:35 -0400 |
User-agent: |
mu4e 0.9.16; emacs 25.1.50.1 |
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 <address@hidden> 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 <address@hidden> wrote:
>>
>>> York Zhao <address@hidden> 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