From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miguel Ruiz Subject: TBLFM added to updated table as result of a emacs-lisp src block Date: Thu, 30 Jul 2015 05:43:55 -0800 Message-ID: <8A1DBA63E79.00000A26rbenit68@inbox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKpE0-0007jN-Jo for emacs-orgmode@gnu.org; Thu, 30 Jul 2015 10:54:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKpDx-0000up-4i for emacs-orgmode@gnu.org; Thu, 30 Jul 2015 10:54:24 -0400 Received: from wm40.inbox.com ([64.135.83.40]:1798) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZKpDx-0000uK-0h for emacs-orgmode@gnu.org; Thu, 30 Jul 2015 10:54:21 -0400 Received: from inbox.com (127.0.0.1:25) by inbox.com with [InBox.Com SMTP Server] id <1507300543082.WM40> for from ; Thu, 30 Jul 2015 05:43:55 -0800 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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.h= tml) =23+name: OneTable =7C 0 =7C 0 =7C 0 =7C =7C 0 =7C 0 =7C 0 =7C =7C 0 =7C 0 =7C 0 =7C =23+name: AnotherTable =23+begin_src emacs-lisp :var table=3DOneTable (setf (nth 1 table) '(2 2 2)) (setq table (cons 'hline table)) =20 (setq table (append table '(hline))) (setq table (append table '((=22Total=22)))) (setq table (append table '((=22=5Cn=23+TBLFM: = =40>=24>=3Dvsum(=40I=24>..=40>>=24>)::=40>=24>>=3Dvsum(=40I=24>>..=40>>=24>= >)::=22)))) table =23+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 =7C remaining.=20 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=21 It stores your passwords & protects your account. Check it out at http://mysecurelogon.com/password-manager