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 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 (bu

Re: [Orgmode] Capture template and elisp expression

2011-01-07 Thread Nick Dokos
Rainer M Krug 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 > > Capture abort:

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 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 t

Re: [Orgmode] Capture template and elisp expression

2011-01-06 Thread Nick Dokos
Carsten Dominik 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)) > > and we

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 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

Re: [Orgmode] Capture template and elisp expression

2011-01-06 Thread Nick Dokos
Rainer M Krug 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 Krug, email