[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] sexp in org remember templates
From: |
Richard Riley |
Subject: |
[Orgmode] sexp in org remember templates |
Date: |
Mon, 26 Oct 2009 23:06:20 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
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?
- [Orgmode] sexp in org remember templates,
Richard Riley <=