C-h f org-map-entries RET
The remaining args are treated as settings for the skipping
facilities of the scanner. The following items can be given here:
archive skip trees with the archive tag.
comment skip trees with the COMMENT keyword
function or Emacs Lisp form:
will be used as value for `org-agenda-skip-function',
so whenever the function returns t, FUNC will not be
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
called for that entry and search will continue from the
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
point where the function leaves it.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That is wrong. Function must return a buffer position or nil.
Christopher