-----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: >> >> %(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: rai...@krugs.de 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----- _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode