From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: sexp in org remember templates Date: Mon, 26 Oct 2009 23:06:20 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2XiO-0001Mu-TN for emacs-orgmode@gnu.org; Mon, 26 Oct 2009 18:07:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2XiK-0001ML-9u for emacs-orgmode@gnu.org; Mon, 26 Oct 2009 18:07:00 -0400 Received: from [199.232.76.173] (port=54283 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2XiK-0001MG-3y for emacs-orgmode@gnu.org; Mon, 26 Oct 2009 18:06:56 -0400 Received: from lo.gmane.org ([80.91.229.12]:41940) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N2XiJ-0000jm-MD for emacs-orgmode@gnu.org; Mon, 26 Oct 2009 18:06:55 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1N2XiG-0004tc-G9 for emacs-orgmode@gnu.org; Mon, 26 Oct 2009 23:06:52 +0100 Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Oct 2009 23:06:52 +0100 Received: from rileyrgdev by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Oct 2009 23:06:52 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Not being much of an elisp programmer and just returning to try and integrate with org-learn a little :- This ("vocab"?v "* Learn TODO %(format '%s' rgr/orig-word) :VOCAB:\n:PROPERTIES:\n:orig:\t%(format '%s' rgr/orig-word)\n:trans:\t%(format '%s' rgr/trans-word)\n:END:%!" nil bottom nil) fails me by outputting: ,---- | * Learn TODO [Error: (wrong-type-argument stringp %s)] :VOCAB: | :PROPERTIES: | :orig: %![Error: (wrong-type-argument stringp %s)] | :trans: %![Error: (wrong-type-argument stringp %s)] | :END:%! `---- both rgr/orig-word and rgr/trans-word are set as strings. Q1 : can I use an elisp var directly as opposed to simulating a func like above? Q2 : What is wrong with the above? Whats wrong with that format of a sexp? Q3 : how can I specify in the template to auto schedule a TODO for "n" days in advance?