From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: bug in org-capture for table lines Date: Thu, 21 Jun 2018 18:14:10 +0200 Message-ID: <87tvpwce25.fsf@nicolasgoaziou.fr> References: <1cf8cfec3fb045b7ba919c1d3b7179ff@de.bosch.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fW2Dy-0006QP-N1 for emacs-orgmode@gnu.org; Thu, 21 Jun 2018 12:14:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fW2Dt-0007r3-Oi for emacs-orgmode@gnu.org; Thu, 21 Jun 2018 12:14:18 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:42651) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fW2Dt-0007pg-II for emacs-orgmode@gnu.org; Thu, 21 Jun 2018 12:14:13 -0400 In-Reply-To: <1cf8cfec3fb045b7ba919c1d3b7179ff@de.bosch.com> (Holst Thomas's message of "Thu, 21 Jun 2018 08:41:06 +0000") 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: "Holst Thomas (PS-EC/ESE4)" Cc: "emacs-orgmode@gnu.org" Hello, "Holst Thomas (PS-EC/ESE4)" writes: > 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=vsum(@-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-finish t))) > #+end_src > > #+end_src Fixed. Thank you. Regards, -- Nicolas Goaziou