From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Holst Subject: Problem (bug?) with capture Date: Thu, 30 Aug 2018 11:49:28 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvJh2-0006Gd-Rc for emacs-orgmode@gnu.org; Thu, 30 Aug 2018 05:56:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fvJgy-0004m7-Uk for emacs-orgmode@gnu.org; Thu, 30 Aug 2018 05:56:48 -0400 Received: from de-deferred1.bosch-org.com ([139.15.180.216]:46506) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fvJgy-0004i0-Bl for emacs-orgmode@gnu.org; Thu, 30 Aug 2018 05:56:44 -0400 Received: from de-out1.bosch-org.com (unknown [139.15.180.215]) by si0vms0224.rbdmz01.com (Postfix) with ESMTPS id 421Hln6RbMz6hm for ; Thu, 30 Aug 2018 11:49:57 +0200 (CEST) Received: from fe0vm1650.rbesz01.com (unknown [139.15.230.188]) by fe0vms0187.rbdmz01.com (Postfix) with ESMTPS id 421HlQ3dkKz1XLDQw for ; Thu, 30 Aug 2018 11:49:38 +0200 (CEST) Received: from si0vm2083.rbesz01.com (unknown [10.58.172.176]) by fe0vm1650.rbesz01.com (Postfix) with ESMTPS id 421HlQ3Fpxz44C for ; Thu, 30 Aug 2018 11:49:38 +0200 (CEST) Received: from SI-HUB2000.de.bosch.com (si-hub2000.de.bosch.com [10.4.103.108]) by si0vm1950.rbesz01.com (Postfix) with ESMTPS id 421HlQ1RGHzc5nm for ; Thu, 30 Aug 2018 11:49:38 +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" To: emacs-orgmode@gnu.org Hello, recently I encountered a problem with capture. I have a template in which =3D:table-line=3D is set to a variable not a string. This used to work but now throws an error. Here is an ECM: * Table | col1 | col2 | col3 | |-------+------+------| | entry | | | |-------+------+------| * Template and elisp code #+BEGIN_SRC elisp (setq th:line "II-1") (setq org-capture-templates '(("t" "Testing variable" table-line (file+headline "~/git/scratch/org-table-test.org" "Table") "| %?| | |" :table-line-pos th:line :immediate-finish t))) #+END_SRC Calling this template throws an error: : condition-case: Capture template =91t=92: stringp When I set :table-line-pos to "II-1" everything works as expected. I have a more complex template where an elisp function sets a variable for the :table-line-pos. This worked up to some point in time but now stopped working. This is on: (emacs-version) "GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-07-02" (org-version) Org mode version 9.1.13 (release_9.1.13-900-g638f32 @ /home/thommy/git-emacs/org-mode/lisp/) Thank you for looking into this. --=20 Thomas