From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Capture template and elisp expression Date: Fri, 07 Jan 2011 09:03:10 -0500 Message-ID: <12133.1294408990@gamaville.dokosmarshall.org> References: <4D25B0BE.3040408@gmail.com> <23766.1294352789@gamaville.americas.hpqcorp.net> <4D26CD44.1070604@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=45434 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbCuc-0007vz-AF for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 09:03:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbCua-0007Tw-V9 for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 09:03:26 -0500 Received: from vms173003pub.verizon.net ([206.46.173.3]:38243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbCua-0007Tl-Rm for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 09:03:24 -0500 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LEN00HSMODAH5A0@vms173003.mailsrvcs.net> for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 08:03:11 -0600 (CST) In-reply-to: Message from Rainer M Krug of "Fri, 07 Jan 2011 09:22:28 +0100." <4D26CD44.1070604@gmail.com> 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: Rainer M Krug Cc: nicholas.dokos@hp.com, emacs-orgmode , Carsten Dominik 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. Nick