Re: [Orgmode] Elisp code to insert a word in table

2010-12-04 Thread ishi soichi
I'd recommend you spend some time studying the "Introduction to Emacs Lisp" > guide: > > > Thanks for pointing this out. I have recently started programming in elisp, and am still having difficulty in basic understanding. But the code worked. So thanks for your help. soichi

Re: [Orgmode] Elisp code to insert a word in table

2010-12-04 Thread Nick Dokos
ishi soichi wrote: > Ah, I need more help, though... > > I have tried this code. I made it as simple as possible to clarify my > question. > > (defun add-word () > (interactive) > '(org-table-put (@2 $2 "word!"))) > > and execute in a buffer having a table already. It did not work at all

Re: [Orgmode] Elisp code to insert a word in table

2010-12-04 Thread ishi soichi
Ah, I need more help, though... I have tried this code. I made it as simple as possible to clarify my question. (defun add-word () (interactive) '(org-table-put (@2 $2 "word!"))) and execute in a buffer having a table already. It did not work at all. But also I kept wondering what could h

Re: [Orgmode] Elisp code to insert a word in table

2010-12-03 Thread ishi soichi
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 >

Re: [Orgmode] Elisp code to insert a word in table

2010-12-03 Thread 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

[Orgmode] Elisp code to insert a word in table

2010-12-03 Thread ishi soichi
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. Do I need to move the "point" to the particular cell before inserting? Thanks in advanc