From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Holst Subject: Re: Problems with capture in tables Date: Thu, 5 May 2011 10:09:29 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHtd5-00079X-S1 for emacs-orgmode@gnu.org; Thu, 05 May 2011 04:09:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHtd4-0000Xl-RM for emacs-orgmode@gnu.org; Thu, 05 May 2011 04:09:47 -0400 Received: from smtp2-v.fe.bosch.de ([139.15.237.6]:47919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHtd4-0000Xa-He for emacs-orgmode@gnu.org; Thu, 05 May 2011 04:09:46 -0400 In-Reply-To: (aankhen@gmail.com's message of "Thu, 5 May 2011 09:45:41 +0200") 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: Aankhen Cc: "Holst Thomas (DGS-EC/ESE4)" , "emacs-orgmode@gnu.org" Hi Aankhen, thanks for your answer. =B7 Aankhen wrote: > Hi, > > On Wed, May 4, 2011 at 12:55, Thomas Holst wr= ote: >> 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 >> =A0 =A0 =A0'(("x" "Testing" table-line >> =A0 =A0 =A0 (file+headline "c:/temp/TestCaptTbl.org" "Heading 1") >> =A0 =A0 =A0 =A0 =A0 "| # | %t | %^{weight} | |" :table-line-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 =91:table-line-pos=92 is supposed 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 That did the trick - works like a charm! I was shure I tried the string, but I assume there was a typing error. Thanks again. --=20 Mit freundlichen Gr=FC=DFen / Best regards=20 Thomas Holst=20