From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Elisp code to insert a word in table Date: Fri, 3 Dec 2010 10:51:06 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=57845 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POSIK-0003ha-68 for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 04:51:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POSII-0004fg-Eb for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 04:51:12 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:52269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POSII-0004f6-AF for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 04:51:10 -0500 Received: by eydd26 with SMTP id d26so18608110eyd.0 for ; Fri, 03 Dec 2010 01:51:09 -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: ishi soichi Cc: emacs-orgmode@gnu.org 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