From mboxrd@z Thu Jan 1 00:00:00 1970 From: ishi soichi Subject: Re: Elisp code to insert a word in table Date: Fri, 3 Dec 2010 19:52:44 +0900 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0865568887==" Return-path: Received: from [140.186.70.92] (port=41322 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POTFv-0008CX-If for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 05:52:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POTFu-0005Pk-4s for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 05:52:47 -0500 Received: from mail-pv0-f169.google.com ([74.125.83.169]:48396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POTFt-0005Pc-VA for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 05:52:46 -0500 Received: by pvc30 with SMTP id 30so3861976pvc.0 for ; Fri, 03 Dec 2010 02:52:44 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org --===============0865568887== Content-Type: multipart/alternative; boundary=00504502c8bc99a63104967f56d9 --00504502c8bc99a63104967f56d9 Content-Type: text/plain; charset=ISO-8859-1 Thanks for such a quick response! soichi 2010/12/3 Carsten Dominik > Hi Ishi, > > > On Dec 3, 2010, at 10:00 AM, ishi soichi wrote: > > Hi. I'm trying to write an elisp code to enter words into a table of >> org-mode. >> >> after designating a buffer, which already contains a table, I simply >> wrote, >> >> '(insert "test!" @2$2) >> >> does not work obviously. >> > > indeed. > > > > >> Do I need to move the "point" to the particular cell before inserting? >> > > You could to that, using the functions org-table-goto-line and then > org-table-goto-column. > > However, it is easier to use, for programmatic access to fields, the > functions > `org-table-put' and `org-table-get'. > > - Carsten > --00504502c8bc99a63104967f56d9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for such a quick response!

soichi

2010/12/3 Carsten Dominik <carsten.dominik@gmail.com>
Hi Ishi,


On Dec 3, 2010, at 10:00 AM, ishi soichi wrote:

Hi. I'm trying to write an elisp code to enter words into a table of or= g-mode.

after designating a buffer, which already contains a table, I simply wrote,=

=A0 =A0'(insert "test!" @2$2)

does not work obviously.

indeed.




Do I need to move the "point" to the particular cell before inser= ting?

You could to that, using the functions org-table-goto-line and then org-tab= le-goto-column.

However, it is easier to use, for programmatic access to fields, the functi= ons
`org-table-put' and `org-table-get'.

- Carsten

--00504502c8bc99a63104967f56d9-- --===============0865568887== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0865568887==--