From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Capture template and elisp expression Date: Fri, 07 Jan 2011 15:31:36 +0100 Message-ID: <4D2723C8.9040703@gmail.com> References: <4D25B0BE.3040408@gmail.com> <23766.1294352789@gamaville.americas.hpqcorp.net> <4D26CD44.1070604@gmail.com> <12133.1294408990@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=53263 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbDim-0007jH-Ha for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 09:55:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbDil-0000VJ-2o for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 09:55:16 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:38807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbDik-0000Uz-TC for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 09:55:15 -0500 Received: by wyj26 with SMTP id 26so18240810wyj.0 for ; Fri, 07 Jan 2011 06:55:14 -0800 (PST) In-Reply-To: <12133.1294408990@gamaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode , Carsten Dominik -----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 (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: Rainer@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-----