[Orgmode] Re: [Patch] Capture: %[FILE] and %(SEXP) (again)

2010-07-17 Thread Johan Friis
I have this in my org-capture-templates, and it works just fine. The note.org file is of course an org-mode file, with normal syntax. ("j" "Journal" entry (file "~/note/journal.org") (file "~/note/template/journal.org")) I am not sure if I misunderstood what you want to do, just wanted to stat

[Orgmode] Re: [PATCH] org-capture - using `file' as template

2010-07-14 Thread Johan Friis
Hi Carsten, I did not have time to try out capture until now, and there is still a bug. When providing (file "...") as template `org-capture-set-plist' still generates a default template. Using the patch from David seems to work fine. Here is a diff against current head. - Johan diff --git a/li

[Orgmode] Re: [PATCH] org-capture - using `file' as template

2010-07-14 Thread Johan Friis
Hello David, Thanks a lot for cleaning up the patch and explaining it. I was not happy with the double `when' and the double (not txt), but everything else I tried kept on having bugs. I did not think of checking if txt was a string. Nice and simple :) And thanks Carsten for the quick fix. Check

[Orgmode] [PATCH] org-capture - using `file' as template

2010-07-13 Thread Johan Friis
Setting up capture to use templates from file in the latest git seemed to cause some errors. I looked into it and wrote this small patch. It could probably use some love, seeing as I am quite new to org-mode, elisp and emacs in general. The error I was getting was related to testing (string-match