Re: [O] bug in org-capture for table lines

2018-06-22 Thread Holst Thomas (PS-EC/ESE4)
Hi Nicolas,

Nicolas Goaziou  writes:

>"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:
>>
>> [...snip ...]
>
> Fixed. Thank you.

I can confirm that it works perfectly.
Thank you!

--
Thomas



Re: [O] bug in org-capture for table lines

2018-06-21 Thread Nicolas Goaziou
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



[O] bug in org-capture for table lines

2018-06-21 Thread Holst Thomas (PS-EC/ESE4)
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=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

(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-emacs/org-mode/lisp/)

Thank you for looking into this.

Mit freundlichen Grüßen / Best regards

Thomas Holst
PS-EC/ESE4

Tel. +49 711 811-40681