Richard Riley <rileyrg...@gmail.com> 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 > -- _______________________________________________ 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