emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniel Schoepe <daniel@schoepe.org>
To: emacs-orgmode@gnu.org
Subject: Dynamically generating todo entries
Date: Wed, 02 Nov 2011 22:27:08 +0100	[thread overview]
Message-ID: <87obwu8bbn.fsf@gilead.invalid> (raw)

[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

Hello,

I'm trying to dynamically generate a list of TODO entries (specifically,
a list of notmuch[1] threads that have a "todo" tag) that I'd like to
see in the TODO agenda, but not in the normal daily agenda (just like a
ordinary TODO entry without a date). A simple try like

(defun foo ()
  "Test function"
  "TODO foo")
--
in something.org:
%%(foo)

ends up generating an entry for every day in the weekly/daily agenda,
but this entry is not recognized as a TODO entry. Is %%(foo) (I don't
know the actual name of this feature) the wrong mechanism for my goal?
If so, is there an alternative for accomplishing what I had in mind?

By the way: Is there a resource describing what special variables are
available to such functions (I only know about date) and how their
output should look like? I couldn't find anything in the org manual.

[1] http://notmuchmail.org

Cheers,
Daniel

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

             reply	other threads:[~2011-11-02 21:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-02 21:27 Daniel Schoepe [this message]
2011-11-02 23:11 ` Dynamically generating todo entries Nick Dokos
2011-11-02 23:35   ` Daniel Schoepe
2011-11-03 10:49     ` Jonas Hörsch
2011-11-23 16:41     ` suvayu ali
2011-11-23 17:17       ` Daniel Schoepe

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=87obwu8bbn.fsf@gilead.invalid \
    --to=daniel@schoepe.org \
    --cc=emacs-orgmode@gnu.org \
    /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).