From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aankhen Subject: Re: Problems with capture in tables Date: Thu, 5 May 2011 13:15:41 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHtG7-0003be-HZ for emacs-orgmode@gnu.org; Thu, 05 May 2011 03:46:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHtG6-0005N7-JD for emacs-orgmode@gnu.org; Thu, 05 May 2011 03:46:03 -0400 Received: from mail-vx0-f169.google.com ([209.85.220.169]:40601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHtG6-0005N3-AQ for emacs-orgmode@gnu.org; Thu, 05 May 2011 03:46:02 -0400 Received: by vxk20 with SMTP id 20so2661171vxk.0 for ; Thu, 05 May 2011 00:46:01 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thomas Holst , "emacs-orgmode@gnu.org" Hi, On Wed, May 4, 2011 at 12:55, Thomas Holst wrot= e: > I am trying to put a line into a table via org capture. > > My org file looks like this: > [snip] > > My capture template looks like this: > #+begin_src emacs-lisp > (setq org-capture-templates > =C2=A0 =C2=A0 =C2=A0'(("x" "Testing" table-line > =C2=A0 =C2=A0 =C2=A0 (file+headline "c:/temp/TestCaptTbl.org" "Heading 1"= ) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "| # | %t | %^{weight} | |" :table-lin= e-pos II-1))) > #+end_src > > When I invoke capture I get the following error (backtrace): > > [snip] > > Now if I leave `:table-line-pos II-1' out of the template it works fine > but the line is appended at the end. That's obviously not what I want. > > [snip] As far as I can tell, the value of =E2=80=98:table-line-pos=E2=80=99 is sup= posed to be a string. This seems to work for me: ,---- | (setq org-capture-templates | '(("x" "Testing" table-line | (file+headline "Z:/temp/TestCaptTbl.org" "Heading 1") | "| # | %t | %^{weight} | |" :table-line-pos "II-1"))) `---- Hope this helps. Aankhen