From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Schoepe Subject: Dynamically generating todo entries Date: Wed, 02 Nov 2011 22:27:08 +0100 Message-ID: <87obwu8bbn.fsf@gilead.invalid> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLiMa-0003kf-CE for emacs-orgmode@gnu.org; Wed, 02 Nov 2011 17:28:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLiMY-0001Yn-P9 for emacs-orgmode@gnu.org; Wed, 02 Nov 2011 17:28:48 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:44422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLiMY-0001YS-AA for emacs-orgmode@gnu.org; Wed, 02 Nov 2011 17:28:46 -0400 Received: by faaf16 with SMTP id f16so1159158faa.0 for ; Wed, 02 Nov 2011 14:28:44 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= 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 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJOsbWtAAoJEIaTAtce+Z+J6r0QAIUO5rRwzPmbSo8nptUHsodj zsFePMGTDDsbA4yg2+SYHsYIzLI+klq3T0ol6MPD9Ejg1lXA7bKFXtSgN2Erbl6N wYCEc9vysOPtZ8Os3T57vlISwaCcYAfSHJSBl7+JPmOiJYYGGwN5x5sZPpAtj8C+ ziPBo619grdm8Jdg4aB8sZN2B63yaE7T59Kd/8eEy65rOaRiEKBJnEoHGxHdDq7s 1+0LuJNf3C9UpVctHO86aFajzV/IaVBcGvRSxhdxCRVsW9wihojNw5joM3qJ5NA5 mEZvLXWXI50oC/2YbYnJsgSOEyugW+3aNxu2TySRMTZs8QjvMuBsfA2J8theAXMu u9ldwK7CdKmlJSKxRpnANgUEDjtB6LDTxqAHO0VGojKGc+/RxnAyCjBwj0RsXR0e hbCefg7j21wysRIF+Svr/J+oLHLt6ebXHNasSVcvXPUC9NdwhRbE3rkGVqXBDG2U L6gOKlDbgf8n3or0GgL9a4QftOzaObo43LsCRyweuXv3Qq1pIS1iAg9cGPXBMGgw LzpjbnE2bpRfL2ZKCm07Yh+QjCxIooQJ5+FAh/jc84nIqaWqJBoq5+34JFq7RzjF IxNnwRokGXqSF+2ZZue8ZFx7iYfKW9JuFd3fxFDweSaC3dyxWkUtu17hqQj8J1yD yHOy2w55p4BTRAH00fU0 =euVy -----END PGP SIGNATURE----- --=-=-=--