From: John Kitchin <jkitchin@andrew.cmu.edu>
To: York Zhao <gtdplatform@gmail.com>
Cc: Nick Dokos <ndokos@gmail.com>, emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Document of org-map-entries
Date: Thu, 13 Oct 2016 10:05:35 -0400 [thread overview]
Message-ID: <m2inswibtc.fsf@andrew.cmu.edu> (raw)
In-Reply-To: <CAD3zm20jdRHaRV3xWYdRXnBxyocNwDNyeQun_FPnvh_uxKU+xA@mail.gmail.com>
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 <gtdplatform@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 <ndokos@gmail.com> wrote:
>>
>>> York Zhao <gtdplatform@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
next prev parent reply other threads:[~2016-10-13 14:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-13 4:16 Document of org-map-entries York Zhao
2016-10-13 4:46 ` Nick Dokos
2016-10-13 5:00 ` York Zhao
2016-10-13 5:25 ` York Zhao
2016-10-13 14:05 ` John Kitchin [this message]
2016-10-13 15:57 ` Nick Dokos
2016-10-14 4:05 ` York Zhao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2inswibtc.fsf@andrew.cmu.edu \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
--cc=gtdplatform@gmail.com \
--cc=ndokos@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).