From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Holst Subject: Problems with capture in tables Date: Wed, 4 May 2011 09:25:36 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHWcH-0001lp-Nt for emacs-orgmode@gnu.org; Wed, 04 May 2011 03:35:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHWcG-0005ht-OO for emacs-orgmode@gnu.org; Wed, 04 May 2011 03:35:25 -0400 Received: from imta22.fe.bosch.de ([139.15.243.26]:49563) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHWcG-0005hZ-I1 for emacs-orgmode@gnu.org; Wed, 04 May 2011 03:35:24 -0400 Received: from smtp2-v.fe.bosch.de (imta23.fe.bosch.de [139.15.243.227]) by imta22.fe.bosch.de (Postfix) with ESMTP id 2F1263FE8C9B for ; Wed, 4 May 2011 09:26:02 +0200 (CEST) Received: from vsmta13.fe.internet.bosch.com (unknown [10.4.98.30]) by imta23.fe.bosch.de (Postfix) with ESMTP id B5021582082E for ; Wed, 4 May 2011 09:25:44 +0200 (CEST) Received: from si-hub03.de.bosch.com (vsgw1.fe.internet.bosch.com [10.4.98.15]) by vsmta13.fe.internet.bosch.com (Postfix) with ESMTP id 5ACD55CA0365 for ; Wed, 4 May 2011 09:25:44 +0200 (CEST) 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: "emacs-orgmode@gnu.org" Hello, I am trying to put a line into a table via org capture. My org file looks like this: #+begin_src org * Heading 1 #+TBLNAME: Testing | | date | weight | BMI | |---+-----------------+--------+------| | # | <2011-05-02 Mo> | 85 | 24.8 | | # | <2011-05-03 Di> | 82 | 24.0 | |---+-----------------+--------+------| | # | | 3.0 | 0.9 | #+TBLFM: $4=3D$3/(1.85)^2;%.1f::@4$3=3D(@I - @II-1);%.1f #+end_src My capture template looks like this: #+begin_src emacs-lisp (setq org-capture-templates '(("x" "Testing" table-line (file+headline "c:/temp/TestCaptTbl.org" "Heading 1") "| # | %t | %^{weight} | |" :table-line-pos II-1))) #+end_src When I invoke capture I get the following error (backtrace): : Debugger entered--Lisp error: (error "Capture template `x': stringp") : signal(error ("Capture template `x': stringp")) : error("Capture template `%s': %s" "x" stringp) : byte-code("\301p!\203=12 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. Tested this with =3Demacs -Q=3D GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1 Org-mode version 7.5 (release_7.5.246.gace72) (local modification to makefile and org-git-link) WinXP --=20 Mit freundlichen Gr=FC=DFen / Best regards=20 Thomas Holst=20