emacs-orgmode
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]