Re: [Orgmode] Capture template and elisp expression

2011-01-07 Thread Rainer M Krug
On 01/06/2011 11:44 PM, Carsten Dominik wrote: On Jan 6, 2011, at 11:26 PM, Nick Dokos wrote: Rainer M Krug r.m.k...@gmail.com wrote: Hi I want to use a Capture Template to record changes to files under version control. Everything works as expected, but I would like to include the

Re: [Orgmode] Capture template and elisp expression

2011-01-07 Thread Nick Dokos
Rainer M Krug r.m.k...@gmail.com wrote: But now I thought - OK - now I can add the state of the file, returned by vc-state (this is working i a nother document in the org-document). So I added: %(vc-state (buffer-file-name (org-capture-get :original-buffer))) but I get the error

Re: [Orgmode] Capture template and elisp expression

2011-01-07 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/07/2011 03:03 PM, Nick Dokos wrote: Rainer M Krug r.m.k...@gmail.com wrote: But now I thought - OK - now I can add the state of the file, returned by vc-state (this is working i a nother document in the org-document). So I added:

Re: [Orgmode] Capture template and elisp expression

2011-01-06 Thread Nick Dokos
Rainer M Krug r.m.k...@gmail.com wrote: Hi I want to use a Capture Template to record changes to files under version control. Everything works as expected, but I would like to include the current revision in the template. Therefore I tried the following: * %T %? at %a by Rainer M

Re: [Orgmode] Capture template and elisp expression

2011-01-06 Thread Carsten Dominik
On Jan 6, 2011, at 11:26 PM, Nick Dokos wrote: Rainer M Krug r.m.k...@gmail.com wrote: Hi I want to use a Capture Template to record changes to files under version control. Everything works as expected, but I would like to include the current revision in the template. Therefore I tried

Re: [Orgmode] Capture template and elisp expression

2011-01-06 Thread Nick Dokos
Carsten Dominik carsten.domi...@gmail.com wrote: [fn:1] Is there an easier way to get the filename of the file I was visiting when I initiated the capture? If not, should there be? Perhaps a %f escape? Hi Nick, you can use (buffer-file-name (org-capture-get :original-buffer))