Re: [O] manipulate org tables using emacs-lisp

2016-10-03 Thread Alan Schmitt
Thanks a lot for all the suggestions. For the moment I’ve put the table at the beginning of the file, but I’ll probably tweak the following functions to use Heikki’s trick of using a regexp to find the named table. I don’t think I want to convert the table to a lisp structure, work on it, and outp

Re: [O] manipulate org tables using emacs-lisp

2016-10-02 Thread Heikki Lehvaslaiho
Hi Alan, Try this function. You can test if the table was found before manipulating it. Table functions typically work only inside tables, but the #+NAME line is part of it although it is before the table itself (as defined by function org-table-begin). (defun my/org-table-find-by-name (str)

Re: [O] manipulate org tables using emacs-lisp

2016-10-01 Thread Thorsten Jolitz
Alan Schmitt writes: Hi Alan, > 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

Re: [O] manipulate org tables using emacs-lisp

2016-10-01 Thread Alan Schmitt
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

Re: [O] manipulate org tables using emacs-lisp

2016-09-30 Thread Thorsten Jolitz
Alan Schmitt writes: Hi Alan, > 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 cell