From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Holst Thomas (PS-EC/ESE4)" Subject: bug in org-capture for table lines Date: Thu, 21 Jun 2018 08:41:06 +0000 Message-ID: <1cf8cfec3fb045b7ba919c1d3b7179ff@de.bosch.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_1cf8cfec3fb045b7ba919c1d3b7179ffdeboschcom_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVv9Y-0008KN-Ql for emacs-orgmode@gnu.org; Thu, 21 Jun 2018 04:41:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVv9T-0006X1-QA for emacs-orgmode@gnu.org; Thu, 21 Jun 2018 04:41:16 -0400 Received: from de-out1.bosch-org.com ([139.15.230.186]:54508) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fVv9T-0006UI-9M for emacs-orgmode@gnu.org; Thu, 21 Jun 2018 04:41:11 -0400 Received: from fe0vm1650.rbesz01.com (unknown [139.15.230.188]) by si0vms0217.rbdmz01.com (Postfix) with ESMTPS id 41BFXg1dPHz4f3lMJ for ; Thu, 21 Jun 2018 10:41:07 +0200 (CEST) Received: from fe0vm1740.rbesz01.com (unknown [10.58.172.176]) by fe0vm1650.rbesz01.com (Postfix) with ESMTPS id 41BFXg16lxz1D5 for ; Thu, 21 Jun 2018 10:41:07 +0200 (CEST) Received: from FE-MBX2033.de.bosch.com (fe-mbx2033.de.bosch.com [10.3.231.43]) by si0vm1950.rbesz01.com (Postfix) with ESMTPS id 41BFXf5cFMzFZXp for ; Thu, 21 Jun 2018 10:41:06 +0200 (CEST) Content-Language: de-DE 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" --_000_1cf8cfec3fb045b7ba919c1d3b7179ffdeboschcom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, there is a bug in org-capture. When capturing table lines table formula is = not updated. Here is an ECM: #+begin_src org * Table for testing | | Item | Price | |---+------+-------| | | | 3.50 | |---+------+-------| | # | sum: | 3.50 | #+TBLFM: @3$3=3Dvsum(@-II..@-I);%.2f * Lisp code (capture template) #+begin_src elisp :results none (setq org-capture-templates '(("t" "Table formula" table-line (file+headline "~/tmp/org-capture-table-formula.org" "Table for = testing") "| | %^{item} | %^{price} |" :table-line-pos "II-1" :immediate-f= inish t))) #+end_src #+end_src (emacs-version) "GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2018= -06-18" (org-version) Org mode version 9.1.13 (release_9.1.13-821-g460d83 @ /home/hts2fe/git-emac= s/org-mode/lisp/) Thank you for looking into this. Mit freundlichen Gr=FC=DFen / Best regards Thomas Holst PS-EC/ESE4 Tel. +49 711 811-40681 --_000_1cf8cfec3fb045b7ba919c1d3b7179ffdeboschcom_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,

 

there is a bug in org-capture. When capturi= ng table lines table formula is not updated.

 

Here is an ECM:

 

#+begin_src org

* Table for testing

 

|   | Item | Price |

|---+------+-------|

|   |    &nbs= p; |  3.50 |

|---+------+-------|

| # | sum: |  3.50 |=

#+TBLFM: @3$3=3Dvsum(@-II..@-I);%.2f

 

* Lisp code (capture template)

 

#+begin_src elisp :results none

  (setq org-capture-templates

       &= nbsp;'(("t" "Table formula" table-line

       &= nbsp;   (file+headline "~/tmp/org-capture-table-formula.= org" "Table for testing")

       &= nbsp;   "| | %^{item} | %^{price} |" :table-line-pos &q= uot;II-1" :immediate-finish t)))

#+end_src

#+end_src

 

(emacs-version)

"GNU Emacs 26.1 (build 1, x86_64-pc-li= nux-gnu, GTK+ Version 3.18.9) of 2018-06-18"

 

(org-version)

Org mode version 9.1.13 (release_9.1.13-821= -g460d83 @ /home/hts2fe/git-emacs/org-mode/lisp/)

 

Thank you for looking into this.=

 

Mit freundlichen = Gr=FC=DFen / Best regards

Thomas Holst
PS-EC/ESE4

Tel. +49 711 811-40681


--_000_1cf8cfec3fb045b7ba919c1d3b7179ffdeboschcom_--