From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: sexp in org remember templates Date: Mon, 26 Oct 2009 23:25:17 +0100 Message-ID: References: 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 1N2Y0a-0001yv-HJ for emacs-orgmode@gnu.org; Mon, 26 Oct 2009 18:25:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2Y0U-0001yL-Ue for emacs-orgmode@gnu.org; Mon, 26 Oct 2009 18:25:47 -0400 Received: from [199.232.76.173] (port=34325 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2Y0U-0001yI-Pb for emacs-orgmode@gnu.org; Mon, 26 Oct 2009 18:25:42 -0400 Received: from lo.gmane.org ([80.91.229.12]:55602) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N2Y0U-0003Be-BL for emacs-orgmode@gnu.org; Mon, 26 Oct 2009 18:25:42 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1N2Y0S-0005Wf-Dz for emacs-orgmode@gnu.org; Mon, 26 Oct 2009 23:25:40 +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:25:40 +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:25:40 +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 Richard Riley writes: > 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: Just to follow up to my own post I now see a ginle function call will work e.g ("vocab"?v "* Learn TODO %(rgr/orig-word) :VOCAB:\n:PROPERTIES:\n:orig:\t%(rgr/orig-word)\n:trans:\t%(rgr/trans-word)\n:END:%!" nil bottom nil) Possibly me not knowing enough elisp but possibly also could support my initial attempt? Thanks for any explanation. > > ,---- > | * 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? > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --