Fix bugs in implementation and documentation of the mapping API.
commit4800fd8b7c797d2197288754288e757ad03660ee
authorCarsten Dominik <carsten.dominik@gmail.com>
Tue, 2 Dec 2008 15:53:25 +0000 (2 16:53 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Tue, 2 Dec 2008 15:53:25 +0000 (2 16:53 +0100)
tree89ac3898e6b477e83d93b35ce993b57f7164dfca
parent269c5a85bcf65432ad7f9df02a9dc08ebca73956
Fix bugs in implementation and documentation of the mapping API.

There were bugs in the mapping API, pointed to by Samuel Wales:

    Manual says:

     The following example counts the number of entries with TODO keyword
     WAITING, in all agenda files.

        (length (org-map-entries t "/+WAITING" nil 'agenda))

    Org says invalid function for the string.

First of all, the example in the manual was wrong, the "nil" should be
gone.  Second, the mapping function did not return all results in a
list, so that `length' could not count them.

This patch fixes these issues.
doc/ChangeLog
doc/org.texi
lisp/ChangeLog
lisp/org.el