[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: sexp in org remember templates
From: |
Richard Riley |
Subject: |
[Orgmode] Re: sexp in org remember templates |
Date: |
Mon, 26 Oct 2009 23:25:17 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Richard Riley <address@hidden> 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.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
--