@Nick:
Thanks for the explanation, it's very kind of you!
@John:
You are right, this actually works. However, this will also exclude the
trees
whose property value is empty, for example, the following tree will be
excluded,
which will not be excluded if "myproperty<>nil" syntax works:
* Tree
:P
York Zhao writes:
> 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.
>
Understood - I like
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 fo
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) U
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