[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Capture template and elisp expression
From: |
Nick Dokos |
Subject: |
Re: [Orgmode] Capture template and elisp expression |
Date: |
Fri, 07 Jan 2011 09:03:10 -0500 |
Rainer M Krug <address@hidden> 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: (wrong-type-argument char-or-string-p edited)
>
> It seems, that vc-state (which should be "up-to-date" or "edited") does
> return a different type then vc-working-revision ? Can I convert
> vc-state, so that it works?
>
Yes, vc-state returns a symbol. You can convert it to a string with
symbol-name.
Nick
- [Orgmode] Capture template and elisp expression, Rainer M Krug, 2011/01/06
- Re: [Orgmode] Capture template and elisp expression, Nick Dokos, 2011/01/06
- [Orgmode] Re: Capture template and elisp expression, Štěpán Němec, 2011/01/07
- [Orgmode] Re: Capture template and elisp expression, Carsten Dominik, 2011/01/07
- [Orgmode] Re: Capture template and elisp expression, Rainer M Krug, 2011/01/07
- [Orgmode] Re: Capture template and elisp expression, Štěpán Němec, 2011/01/07
- [Orgmode] Re: Capture template and elisp expression, Carsten Dominik, 2011/01/08
- [Orgmode] Re: Capture template and elisp expression, Štěpán Němec, 2011/01/08