[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Capture template and elisp expression
From: |
Rainer M Krug |
Subject: |
Re: [Orgmode] Capture template and elisp expression |
Date: |
Fri, 07 Jan 2011 15:31:36 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14pre) Gecko/20101224 Lightning/1.0b2 Shredder/3.1.8pre |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01/07/2011 03:03 PM, Nick Dokos wrote:
> 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.
Thanks - it's working perfectly now
Cheers,
Rainer
>
> Nick
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa
Tel: +33 - (0)9 53 10 27 44
Cell: +27 - (0)8 39 47 90 42
Fax (SA): +27 - (0)8 65 16 27 82
Fax (D) : +49 - (0)3 21 21 25 22 44
Fax (FR): +33 - (0)9 58 10 27 44
email: address@hidden
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk0nI8gACgkQoYgNqgF2egpK8QCghhEbFrO6ENA93fEM8KonkB13
grwAmwas8uKA83JdoyLwXlImZtmTVtfS
=h2xa
-----END PGP SIGNATURE-----
- [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