Osamu OKANO <okano.os...@gmail.com> writes: > I' like to know a count of search results. > (message > "You have %s habits which are out of date." > (org-agenda-match-count > (tags-todo "STYLE=\"habit\"+SCHEDULED<=\"<now>\""))) > Is there any way? >
You could use org-map-entries to count the number of occurrences: (length (org-map-entries t "STYLE=\"habit\"+SCHEDULED<=\"<now>\"" 'agenda)) Best, Matt