From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: manipulate org tables using emacs-lisp Date: Sat, 01 Oct 2016 10:44:52 +0200 Message-ID: References: <87k2dtm7or.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqFv9-00053z-Jq for emacs-orgmode@gnu.org; Sat, 01 Oct 2016 04:45:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqFv6-0002kQ-C8 for emacs-orgmode@gnu.org; Sat, 01 Oct 2016 04:45:23 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:24380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqFv6-0002h0-5Y for emacs-orgmode@gnu.org; Sat, 01 Oct 2016 04:45:20 -0400 In-Reply-To: <87k2dtm7or.fsf@gmail.com> (Thorsten Jolitz's message of "Fri, 30 Sep 2016 22:52:36 +0200") 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: Thorsten Jolitz Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Thorsten, On 2016-09-30 22:52, Thorsten Jolitz writes: >> Are there functions for manipulating org-tables using emacs-lisp? More >> precisely, I would like to refer to a table by its name, read some cells >> (either by position or by matching some given text with some text in the >> first row/column), and write in some cells. > > ,----[ C-h f org-table-to-lisp RET ] > | org-table-to-lisp is an autoloaded compiled Lisp function in > | =E2=80=98../org-mode/lisp/org-table.el=E2=80=99. > |=20 > | (org-table-to-lisp &optional TXT) > |=20 > | Convert the table at point to a Lisp structure. > | The structure will be a list. Each item is either the symbol =E2=80=98= hline=E2=80=99 > | for a horizontal separator line, or a list of field values as strings. > | The table is taken from the parameter TXT, or from the buffer at point. > |=20 > | [back] > `---- > > returns the table as a nested list you can map with lots of Elisp > functions (like mapcar).=20 > > Ex.: > > | my | tab | > | 1 | 2 | > > =3D> > > (("my" "tab") ("1" "2")) This is very useful, thank you. But how do I go to a named table? I found org-babel-goto-named-block, but nothing for tables. Thanks again, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO=E2=82=82, Mauna Loa Obs. 2016-08: 402.25, 2015-08: = 398.93 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJX73eFAAoJEAQNCjtO0uXH0F4H/R7B10FJLjwWEHuUVbfg3kUx nWGndMJKtgVzXlMhy2Q3exGpjuwjOMlXBY6FAtYBR4KXxRlZsXldjw1vk3oSLvxc oZXOMKmyHTc4SJLkQhKaHeeJ2zFOmagxx1QNYQaXWOerik6aOzRAyDl8AC4pu7WF bgM3nDtnuTresub4iBZHQF6jSVPdh8tZhc2Wq417nXyhkqLTaau1q8u2bQ8KWBuE V1nlTHIUrtvQu2C3LRPU3jDW/P9Rx/Piib8IPb0yZkBBSxEBbpqhnc9+iL7+trZL S2TAqAqyM0p9gRm3kHGlEvJ5r9lkXjjabdhQNEn+lTr1av+6Wsd11oBuyxt+Vk8= =pndW -----END PGP SIGNATURE----- --=-=-=--