* TBLFM added to updated table as result of a emacs-lisp src block
@ 2015-07-30 13:43 Miguel Ruiz
0 siblings, 0 replies; only message in thread
From: Miguel Ruiz @ 2015-07-30 13:43 UTC (permalink / raw)
To: Org-Mode mailing list
Hi,
I'm trying to make the following (modified) code works:
(https://eschulte.github.io/org-scraps/scraps/2011-08-19-updating-a-table.html)
#+name: OneTable
| 0 | 0 | 0 |
| 0 | 0 | 0 |
| 0 | 0 | 0 |
#+name: AnotherTable
#+begin_src emacs-lisp :var table=OneTable
(setf (nth 1 table) '(2 2 2))
(setq table (cons 'hline table))
(setq table (append table '(hline)))
(setq table (append table '(("Total"))))
(setq table (append table '(("\n#+TBLFM: @>$>=vsum(@I$>..@>>$>)::@>$>>=vsum(@I$>>..@>>$>>)::"))))
table
#+end_src
At this point, it's ok for me but I need to put :: at the end to make it calculates sums because the | remaining.
I'm aware I'm appending TBLFM to the table in a not orthodox way.
Is there a canonical way I could proceed in?
TIA
Miguel Ruiz.
____________________________________________________________
Can't remember your password? Do you need a strong and secure password?
Use Password manager! It stores your passwords & protects your account.
Check it out at http://mysecurelogon.com/password-manager
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-30 14:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-30 13:43 TBLFM added to updated table as result of a emacs-lisp src block Miguel Ruiz
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.