From: Miguel Ruiz <rbenit68@inbox.com>
To: Org-Mode mailing list <emacs-orgmode@gnu.org>
Subject: TBLFM added to updated table as result of a emacs-lisp src block
Date: Thu, 30 Jul 2015 05:43:55 -0800 [thread overview]
Message-ID: <8A1DBA63E79.00000A26rbenit68@inbox.com> (raw)
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
reply other threads:[~2015-07-30 14:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8A1DBA63E79.00000A26rbenit68@inbox.com \
--to=rbenit68@inbox.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).