From: Matt Lundin <mdl@imapmail.org>
To: Osamu OKANO <okano.osamu@gmail.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Can I get match count?
Date: Tue, 26 Apr 2011 22:50:20 -0400 [thread overview]
Message-ID: <87fwp4qufn.fsf@fastmail.fm> (raw)
In-Reply-To: <BANLkTi=AnbNubkbVcLymRtp42_OHPW2WAA@mail.gmail.com> (Osamu OKANO's message of "Mon, 25 Apr 2011 23:43:07 +0900")
Osamu OKANO <okano.osamu@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
next prev parent reply other threads:[~2011-04-27 2:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-25 14:43 Can I get match count? Osamu OKANO
2011-04-27 2:50 ` Matt Lundin [this message]
2011-04-27 14:40 ` Osamu OKANO
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=87fwp4qufn.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=emacs-orgmode@gnu.org \
--cc=okano.osamu@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).